Field Summary |
public
| indexById: Object |
| Index associative array
|
|
public
| list: Array |
| The data list encapsulated by this view2
|
|
Property Summary |
public
| length: Number (read-only)
|
| Returns the length of the underlying data list encapsulated by this view
|
|
Constructor |
public
| DataView (
list: Array)
|
| Create a new DataView instance
|
|
Method Summary |
public
| addItem (
item: Object
): Void |
| Add an item to the list
|
|
public
| addItemAt (
index: Number, item: Object
): Void |
| Add an item to the list
|
|
public
| buildIndexById (
): Void |
| Builds the key index
|
|
public
| getItemAt (
index: Number
): Object |
| Returns the item at the specified index in the array
|
|
public
| getItemIndex (
item: Object
): Number |
| Returns the index of the item in the list
|
|
public
| removeItem (
item: Object
): Void |
| Remove an item from the view
|
|
public
| replaceItem (
newItem: Object, oldItem: Object
): Void |
| Replace an item in the view
|
|
|