ListItem - AppDaddy-Software-Solutions-Inc/framework-markup-language GitHub Wiki
<ITEM/> : <BOX/>
The <ITEM/> widget is used to define items in a <LIST/>(./List) or as a prototype <ITEM/> for dynamic lists that are tied to a data source.
Each <ITEM/> created in the list has its own unique scope. This allows widgets within the each <ITEM/> to have similar id's to widgets defined in other <ITEM/>'s.
Every <ITEM/> in a <LIST/>(./List) is a <FORM/>(./Form) by default.
| Name | Type | Default | Description | Req |
|---|---|---|---|---|
| selectable | bool | true | If the <ITEM/> can be "selected" by clicking or tapping on it. The current selected <ITEM/> of the <LIST/> can be referenced using the <LIST/>'s selected property. | |
| post | bool | false | Every item in the grid is treated as an individual <FORM/>. The datasource specified in post is fired when form.complete() is executed. |
|
| width | int / % / auto | The width of the item expressed in pixels or as a percentage of its parent. To allow variable width item grids, set the first item's width="auto". Note: For large list's where width="auto", scroll bar perfomance may experience "jank" |
||
| height | int / % / auto | The height of the item expressed in pixels or as a percentage of its parent. To allow variable height item lists, set the first item's height="auto". Note: For large list's where height="auto", scroll bar perfomance may experience "jank" |
| Name | Values | Default | Description |
|---|---|---|---|
| selected | bool | false | If item is selected |
| Name | Description |
|---|---|
| onclick | A list of ; seperated action(s) to execute when the item is clicked |
| oninsert | A list of ; seperated action(s) to execute after a new item is added to the list using the <LIST/>(./List)'s insert() method |
| ondelete | A list of ; seperated action(s) to execute afater the item is removed from the list using the <LIST/>(./List)'s delete() method |