milo

ItemFacet$getIndex

function
 ItemFacet$getIndex() 

Facet instance method
Returns the index of the owner component in it's parent list component

function ItemFacet$getIndex() {
    return this.index;
}

ItemFacet$setIndex

function
 ItemFacet$setIndex() 

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$removeItem

function
 ItemFacet$removeItem() 

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$extractItem

function
 ItemFacet$extractItem() 

ItemFacet instance method
Removes component from the list, component is NOT destroyed

function ItemFacet$extractItem() {
    this.list.extractItem(this.index);
}