Cell callouts
Last updated
Last updated
Version compatibility
Cell callouts were introduced in version 4.70.0 of the JourneyApps Runtime.
For correct linting and type support in OXIDE, ensure you have runtime-build
set to version 2.3.2
or higher.
Callouts draw attention to the end user viewing a table. Callouts show a tooltip above a cell much like cell validation, but give developers more flexibility in terms of the message being presented and color scheme.
Here are some steps to implement callouts:
Create a view variable to track the object which will have the callout and setup a table with an id
2. initialize the variable using the init()
method
3. When ready, call the component.objectTable().setState()
method to show some callouts.
The id
in the callouts
payload should match the id
of the object (i.e. the row) in the table. The column
refers to the index (starting at 0) of the column as defined in the XML (regardless of whether the column has show-if
or hide-if
attributes enabled).
Also note the color
refers to the color of the callout background. The corresponding text color as defined in the application color theme will used for the foreground color (text color).
For more advanced use cases, markdown can be provided to the callout to allow for more fine-grained styling.
Notice that in above example, we have added #
to the message to enforce a heading and to create a paragraph.