Facet instance method
Returns the index of the owner component in it's parent list component
function ItemFacet$getIndex() {
return this.index;
}
Option name | Type | Description |
---|---|---|
index | Integer | The index to be set |
Facet instance method
Sets the index of this component
function ItemFacet$setIndex(index) {
this.index = index;
}
ItemFacet instance method
Removes component from the list, component gets destroyed
function ItemFacet$removeItem() {
// this.list and this.index are set by the list when the item is added
this.list.removeItem(this.index);
}
ItemFacet instance method
Removes component from the list, component is NOT destroyed
function ItemFacet$extractItem() {
this.list.extractItem(this.index);
}