Placeholder Add Example
You can add data to a placeholder in many ways. The global viper method placeholder.add() accepts an id of the placeholder to add data to, and a variable number of parameters for the column values of a new row.
Smartsite SXML | Copy Code |
---|---|
<se:placeholder id="c" fieldnames="name, index" sortcolumn="index" rowformat="{this.field(name)}" rowdelimiter="," /> <se:hidden> {placeholder.add('c', 'second', 2)} {placeholder.add('c', 'first', 1)} </se:hidden> |