Every element within your application, which Tulip calls Widgets, can be configured to best suit the desired form and function.
Different Widgets support different configuration options. These settings can impact many different attributes of widgets:
- Content/Data Mapping
- ex: What text will be displayed on a button, What columns of a table will be displayed?
- ex: Where should the value of an input be stored, What table should be displayed?
- ex: What color should a button be, Should a text widget be set to bold or italics?
- ex: What happens when a user clicks [Enter], What happens when a user selects a row?
How To Configure Widgets
To edit a widget, it must be selected.
- Select a Widget you would like to configure.
- When selected, the Context Pane for that widget is displayed.
Content - Data Mapping
The content displayed for Widgets differs for various widgets, but the process for mapping doesn't differ. The "Datasource" Widget setting defines the source of the widget contents. When you first add widgets, their datasouce will be unmapped.
Datasource Type is the broad type of source the widget is mapped to. Examples include Variables, Table Record Fields, Machine Attributes, and more.
Datasource is the specific attribute within that type that the widget is mapped to.
A warning icon appears in the corner of an input to indicate that no datasource is selected.
For Inputs Datasource will represent the location where user input will be stored, for all other widgets, Datasource will represent the source of the data the widget displays.
Many widgets are tied to data. Widgets content can be driven by dynamic data, like Table Records or Variables. Input widgets can also be used to populate data into variables or table record fields.
Input widgets are read/write with their datasource, changes in the input will change the datasource's value. Most widgets are read-only, where they can be driven by dynamic data, but can't directly impact the value of their datasource.
You can edit the following properties of widgets after they are uploaded to Tulip in the Context Pane on the right side of the screen. The options for styling vary based on the widget, but most widgets have the options listed below-
- Font Size
- Font Color
- Font Style
- Button Text Align
- Button Color
- Drop Shadow
- Border Radius
Data Driven Widgets
Many Widgets can be populated from dynamic data. In most dynamic widgets, the Datasource setting indicates what data is driving the widget state.
All Color properties can either be set statically or dynamically based on a variable.
The Variable widget's contents can be tied to the value of any app variable, including colors. This widget will dynamically change as the source variable changes.
The table record widget will reflect the current value of an entire record or an individual table record field.
The interactive table widget displays the current state of a Table.
Many widgets can trigger app logic. Different widgets offer different behavior that drives Triggers firing.
For all input widgets, when the input is changed, their triggers will run.
In the case of Number and Text input widgets, Triggers will fire on users clicking [Enter]
When a user selects a row, its trigger will run. Additionally, that row will be loaded into the table record placeholder set in the Linked Record widget setting. Learn more about the interactive table widget here.
For rows in the interactive table widget to be selectable, its Linked Record field must be tied to a table record placeholder.