🟠Attribute Styling
Last updated
Last updated
Mapping attributes is similar to mappings values. Let's consider a simple mapping of an Airtable field called "Product title" to a 3DVista component called "Title":
This results in the Airtable record's value being mapped to the "Title" component:
Mapping attributes is very similar. Let's say we want to change the color of the Title and we want to use a value from Airtable. The color can be computed, for example depending on the product's status it can be green if the product is available or red if the product is sold out - we can use a formula field to achieve this:
Let's create a new field "Product title color" with a computed value depending on the value from the field "stock"
Let's map the new "Product title color" to the component "Title" but this time to an attribute "fontColor"
Voilà, there we have the color of the "Title" component changed:
With attributes you can change the component's style, position, alignment etc.