A list-item can be defined as either static (for basic usage) or dynamically (will repeat itself for each item in a query). A simple static list will be defined as:
list-item attributes can be represented as either shorthand (perfect for quick and common use cases) or longhand (for more complicated use cases). In shorthand mode, you can simply add attributes such as content="test" on a list-item while in longhand mode you would nest a <content>test</content> tag inside the list-item.
The following attributes on a list-item support the shorthand notation:
The presence of bind makes the list selectable. bind contains the variable that stores the object that the user selected. Must be the same data model type as the list-item's query.
Text that is displayed in the content position of the list-item.
Example: Shorthand syntax
<list> <list-itemcontent="Click to view more information about the user" /></list>
Example: Longhand syntax
<list> <list-item> <content>Click to view more information about the user</content><!-- or --> <content>{formatString}</content><!-- or --> <contentvalue="Click to view more information about the user" /> </list-item></list>
Text that is displayed in the footer position of the list-item.
Example: Shorthand syntax
<list> <list-itemfooter="Click to view more information about the user" /></list>
Example: Longhand syntax
<list> <list-item> <footer>Click to view more information about the user</footer><!-- or --> <footer>{formatString}</footer><!-- or --> <footervalue="Click to view more information about the user" /> </list-item></list>
Text that is displayed in the header position of the list-item.
Example: Shorthand syntax
<list> <list-itemheader="Create new user" /></list>
Example: Longhand syntax
<list> <list-item> <header>Create new user</header><!-- or --> <header>{formatString}</header><!-- or --> <headervalue="Create new user" /> </list-item></list>
query
Optional
Default: unset
Shorthand supported?false
The presence of query makes list-items dynamic. query contains the name of the query or array variable to populate the objects shown as list-items.