Class Banana.Controls.CustomListControl
Defined in: CustomListControl.js.
Constructor Summary
Method Summary
createControls()
this function is called when set data or set datasource is called overwrite this function to create your own logic
Constructor Detail
new Banana.Controls.CustomListControl()
Creates a base custom list control. Use this class as a wrapper arround your custom
list controls which are using datasource and or data.
if setDatasource of setData is called we call createControls method in which
the creation of controls should be defined
basicly this control rerenders the whole control + child collection when calling either data or datasource
It handles all the clearing and re-rendering.
Example:
//define the class
var myList = Banana.Controls.CustomListControl.extend({
createControls : function()
{
var i,len;
for (var i=0,len=this.datasource.length;i
Method Detail
createControls()
this function is called when set data or set datasource is called
overwrite this function to create your own logic
setData(data, ignoreEvent, ignoreDom)
: this
sets data on control.
when this function is called we also clear the control and invalidate
the display to rerender the control
Parameters:
{mixed} | data | for control |
{bool} | ignoreEvent | when true we dont trigger |
{bool} | ignoreDom | when true we dont update dom |
Returns:
{this} |
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Dec 05 2012 21:58:19 GMT+0100 (CET)