Comment on page
Entity Advanced Templating
For a full ExtensionML reference, continue here:
You can create a reusable
templatethat leverages the values in the
dataobject for the specific object. When using the
datafor these attributes, the template uses the
idattribute on the tag to specify which member of the data object holds these attributes.
For example, the template and data below could be used to display a link within a Symphony message:
<!-- A <text> primitive must be used to inject
text objects from the JSON data into the template -->
<a id="url"><text id="text"></a>
text: "Symphony website"
Use the following flow control tags to support entities that have conditional logic or recursive data:
Use the following tags to have interactivity on messages by implementing methods that are called to execute business logic:
The following steps show examples on how to use actions.
- 1.Add the
<action>tag to an entity template.
<entity id="survey-voting-template" class="template">
<h3>How did you like today's <text id="type"/> from <text id="venue"/>?</h3>
Please provide feedback by clicking one of the stars below to rate the meal.
Voting ends at <text id="end"/>
- 1.The data field of the entity must have objects that match the actions ids. For these objects, we can provide an icon, a label and a service name for the action.
- 1.Implement an action method for the service of the entity renderer. This method will be called once the
<action>tag is clicked.
Last modified 2yr ago