Placeholder Simple Example
The PlaceHolder macro is a very versatile component that you can use for delayed data display. ItĀ hosts a datatable that you can manipulate during its lifecycle and uses standard SXML formatting to display the resulting rows.
In this example, a placeholder that renders 'in place' is used.
Smartsite SXML | Copy Code |
---|---|
<se:placeholder id="test"> <se:parameters> <se:parameter name="fieldnames">key,value</se:parameter> <se:parameter name="rowformat">{this.field(value)}</se:parameter> <se:parameter name="rowdelimiter"> </se:parameter> <se:parameter name="sortcolumn">key</se:parameter> </se:parameters> </se:placeholder> {page.test.add(2, 'world')} {page.test.add(1, 'Hello')} |
Example Result | Copy Code |
---|---|
Hello world |