Constructor Summary
Public Constructor | ||
public |
constructor(id: String, options: Object) Constructor |
Method Summary
Public Methods | ||
public |
Returns the specified data item. |
|
public |
Returns the array that is bound to the widget. |
|
public |
select(items: jQuery | Array): jQuery Gets the selected ListView item. |
|
public |
selectFirstItem(): Null Selects first list view item. |
|
public |
setDataSource(array: String[]): Null Sets the dataSource of an existing ListView and rebinds it. |
Public Constructors
public constructor(id: String, options: Object) source
Constructor
Params:
Name | Type | Attribute | Description |
id | String | ListView id. |
|
options | Object | config params. |
|
options.selectable | Boolean | String | Indicates whether selection is enabled/disabled. |
|
options.dataSource | Object | Array | The data source of the widget is used render ListView rows. |
|
options.template | String | Specifies ListView item template. |
|
options.change | function(e: Object): null | callback function will run on selection change event. |
|
options.dataBound | function(e: Object): null | callback function will run on the list view has received data from the data source and it is already rendered. |
Public Methods
public dataItem(row: String | Element | jQuery): Object source
Returns the specified data item.
Params:
Name | Type | Attribute | Description |
row | String | Element | jQuery | the row to get data. |
public select(items: jQuery | Array): jQuery source
Gets the selected ListView item.
Params:
Name | Type | Attribute | Description |
items | jQuery | Array | the items to select. |
Return:
jQuery | the selected items if called without arguments. |