Lists
import {List} from 'cx/widgets';<List
records-bind="$page.records"
selection={PropertySelection}
style="width:200px"
emptyText="No results found."
mod="bordered"
onItemDoubleClick={(e, {store}) => { MsgBox.alert(store.get('$record.text')) }}
>
<div>
<strong>Header <Text expr="{$index}+1"/></strong>
</div>
Description
</List>| Property | Description | Type |
|---|---|---|
grouping | Grouping configuration. Check the example for more information. | config |
indexAlias | Alias used to expose record index. Defaults to | string |
recordAlias | Alias used to expose record data. Defaults to | string |
records | An array of records to be displayed in the list. | array |
selection | Selection configuration. See Selections for more details. | config |
sortDirection | A binding used to store the sort direction. Available only if | string |
sortField | A binding used to store the name of the field used for sorting the collection.
Available only if | string |
sorters | A binding used to store the sorting order list.
This should be an array of objects with | array |
class | Additional CSS classes to be applied to the element. If an object is provided, all keys with a "truthy" value will be added to the CSS class list. | string/object |
itemClass | CSS class that will be applied to all list items. | string/object |
itemDisabled | Parameter used for disabling specific items in the list. | boolean |
itemStyle | CSS style that will be applied to all list items. | string/object |
mod | Appearance modifier. For example, | string/array |
outerLayout | Defines the outer layout which wraps the widget. | widget |
putInto | Used with outer layouts. Specifies the name of the content placeholder which should render the widget. | string |
scrollSelectionIntoView | Set to | boolean |
selectMode | Lists in this mode perform selection automatically without offering cursor navigation. | boolean |
selectOnTab | If this field is set to | boolean |
sortOptions | Options for data sorting. See Intl.Collator options for more info. | record |
style | Style object applied to the wrapper div. Used for setting the dimensions of the element. | string/object |
vdomKey | Key that will be used as the key when rendering the React component. | string |
visible | Visibility of the widget. Defaults to | boolean |