tabview-base.js revision 61367bf5ab01acac9484d7e81c657d8ac6b42240
TABVIEW = 'tabview',
TAB = 'tab',
CONTENT = 'content',
PANEL = 'panel',
SELECTED = 'selected',
EMPTY_OBJ = {},
classNames = {
},
roles = {
tabList: 'aria-tablist',
tab: 'aria-tab',
},
queries = {
tablist: 'ul',
tab: 'ul > li',
link: 'ul > li > a',
label: 'ul > li > a > em',
content:'div',
tabPanel:'div > div',
},
TabviewBase = function(config) {
if (TabviewBase.superclass) {
} else {
}
};
initializer: function(config) {
this.render();
},
initClassNames: function(index) {
// this === tabview._node
if (classNames[name]) {
}
if (result) {
}
}
}, this._node);
},
if (oldItem) {
}
if (oldContent) {
}
if (newItem) {
}
if (newContent) {
}
},
initState: function() {
this._select(activeIndex);
},
// base renderer only enlivens existing markup
renderer: function() {
this.initClassNames();
this.initState();
this.initEvents();
},
render: function() {
return this;
},
tabEventName: 'click',
initEvents: function() {
// TODO: detach prefix for delegate?
// this._node.delegate('tabview|' + this.tabEventName),
this.onTabEvent,
this
);
},
onTabEvent: function(e) {
e.preventDefault();
},
destructor: function() {
// remove events via detach prefix
},
destroy: function() {
}
});
Y.TabviewBase = TabviewBase;