tab.js revision b7d35a3417d982b6fa70eb7eab19f0ae159d88dc
/**
* Provides Tab instances for use with TabView
* @param config {Object} Object literal specifying tabview configuration properties.
*
* @class Tab
* @constructor
* @extends Widget
* @uses WidgetChild
*/
_uiSetSelectedPanel: function(selected) {
},
_afterTabSelectedChange: function(event) {
},
_afterParentChange: function(e) {
if (!e.newVal) {
this._remove();
} else {
this._add();
}
},
_initAria: function() {
if (!id) {
}
// Apply the ARIA roles, states and properties to each tab
// Apply the ARIA roles, states and properties to each panel
role: 'tabpanel',
'aria-labelledby': id
});
},
syncUI: function() {
},
bindUI: function() {
},
renderUI: function() {
this._renderPanel();
this._initAria();
},
_renderPanel: function() {
},
_add: function() {
if (list) {
}
if (panel) {
}
},
_remove: function() {
},
_onActivate: function(e) {
if (e.target === this) {
// Prevent the browser from navigating to the URL specified by the
// anchor's href attribute.
e.domEvent.preventDefault();
}
},
initializer: function() {
defaultFn: this._onActivate
});
},
_defLabelSetter: function(label) {
return label;
},
_defContentSetter: function(content) {
return content;
},
// find panel by ID mapping from label href
_defPanelNodeValueFn: function() {
if (panel) {
}
}
// use the one found by id, or else try matching indices
}
if (!panel) { // create if none found
}
return panel;
}
}, {
ATTRS: {
/**
* @attribute triggerEvent
* @default "click"
* @type String
*/
triggerEvent: {
value: 'click'
},
/**
* @attribute label
* @type String
*/
label: {
setter: '_defLabelSetter',
},
/**
* @attribute content
* @type String
*/
content: {
setter: '_defContentSetter',
},
/**
* @attribute panelNode
* @type Y.Node
*/
panelNode: {
if (node) {
}
return node;
},
valueFn: '_defPanelNodeValueFn'
},
tabIndex: {
value: null,
validator: '_validTabIndex'
}
},
HTML_PARSER: {
selected: function(contentBox) {
1 : 0;
return ret;
}
}
});