Adding custom expressions
You can directly bind to an expression without binding into a data source.
-
Create or edit a widget.
- If you are creating a new widget, perform the steps on New Page.
- If you are updating an existing widget, perform the steps on Edit Page.
- In the Elements section, select a widget element.
- In Data Properties > Expression, click Custom Expression.
-
In the Expression Editor > Add item menu, select an item.
- If you select Static Text, in the Add Static Text dialog box, specify the static string value.
- If you select Translation, in the Add Translation String dialog box, search and select a translated string.
- If you select Variable, in the Add Variable dialog box, search and select a variable.
- If you select Current date, in
the Add Date dialog box, select the date format and
the number of adjustment days.
See Date format.
- If you select Component, in the Add Component Binding dialog box, search and select a component.
- Click Add.
- Click Save.
- In the widget preview, check the rendered value.