List API

Methods
destructor removes a List instance and releases occupied resources
disableSelection disables selection of items in List
edit enables editing of an item
editItem enables editing of an item
enableSelection enables selection of items in List
getFocus returns the id of an item in focus
getFocusIndex returns the index of an item in focus
getFocusItem returns the object of an item in focus
paint repaints a list on a page
setFocus sets focus to an item by its id
setFocusIndex sets focus to an item according to its index

Data Collection

add adds a new item to the component
copy creates a copy of an item at the defined position
exists checks whether the specified item exists in the component
filter filters items in the component by the specified key
find finds an item that corresponds to the specified parameters
findAll finds all the items that correspond to the specified parameters
getId returns the id of the item by its index
getIndex returns the index of the item by its id
getItem returns the object of an item by its id
load loads data from an external file
map iterates through all items of the component
move moves an item to the defined position
parse loads data from a local data source
remove deletes the specified item from the component
removeAll deletes all the items from the component
serialize serializes data of the component into an array of JSON objects
sort sorts data items in a component
update updates properties of the item
Events
AfterEditEnd fires after editing of an item is ended
AfterEditStart fires after editing of an item has started
BeforeEditEnd fires before editing of an item is ended
BeforeEditStart fires before editing of an item has started
click fires on clicking an item
contextmenu fires on calling a context menu for an item
DoubleClick fires on double clicking an item
focusChange fires on moving focus to a new item
itemMouseOver fires on moving the mouse pointer over an item
itemRightClick fires on right clicking an item

Data Collection

AfterAdd fires after adding a new item into a data collection
AfterRemove fires after removing a new item from a data collection
BeforeAdd fires before adding a new item into a data collection
BeforeRemove fires before removing an item from a data collection
Change fires when a data collection is modified
Load fires when items are loaded in a data collection
LoadError fires when loading of data fails
RemoveAll fires when all items are removed from a data collection
Properties
css adds a CSS class(es) to the component
data specifies an array of data objects to set into the list
dragCopy defines that an item is copied to a target during drag-n-drop
dragMode enables drag-n-drop in List
editable enables editing in List
editing enables editing in List
height sets the height of List
itemHeight sets the height of an item
keyNavigation enables/disables navigation in List by arrow keys
multiselection enables selection of multiple List items
multiselectionMode sets the mode of multiselection
selection enables selection of a List item
template specifies a template for List items
virtual enables dynamic rendering of List items
Back to top