scrollview-list-debug.js revision d5daadf7c87a641483741ee68c26b343acb5717c
/**
* Provides a plugin, which adds support for a scroll indicator to ScrollView instances
*
* @module scrollview-scrollbars
*/
SCROLLVIEW = 'scrollview',
CONTENT_BOX = "contentBox",
RENDERED = 'rendered',
RENDER_UI = 'renderUI',
HOST = "host";
/**
* ScrollView plugin that adds scroll indicators to ScrollView instances
*
* @class ScrollViewScrollbars
* @namespace Plugin
* @extends Plugin.Base
* @constructor
*/
function ListPlugin() {
}
/**
* The identity of the plugin
*
* @property ListPlugin.NAME
* @type String
* @default 'pluginList'
* @static
*/
/**
* The namespace on which the plugin will reside.
*
* @property ListPlugin.NS
* @type String
* @default 'list'
* @static
*/
/**
* HTML template for the scrollbar
*
* @property ScrollViewScrollbars.SCROLLBAR_TEMPLATE
* @type Object
* @static
*/
/**
* The default attribute configuration for the plugin
*
* @property ScrollViewScrollbars.ATTRS
* @type Object
* @static
*/
ListPlugin.ATTRS = {
/**
* Specifies whether the list elements (the immediate <ul>'s and the immediate <li>'s inside those <ul>'s) have class names attached to them or not
*
* @property ScrollView.list.isAttached
* @type boolean
* @static
*/
isAttached: {
value:false,
}
};
/**
* Designated initializer
*
* @method initializer
*/
initializer: function() {
this._addClassesToList();
}
},
_addClassesToList: function() {
if (!this.get('isAttached')) {
if (cb.hasChildNodes()) {
//get all direct descendants of the UL's that are directly under the content box.
//go through the UL's and add the class
});
//go through LI's and add the class
});
this.set('isAttached', true);
}
}
}
});
}, '@VERSION@' ,{skinnable:true});