base.js revision 99109bad03481e2ab7aeb5f1b0082145f80ba764
}
function makeClassName(str) {
if (str) {
}
else {
}
}
/**
* @method initializer
* @description Internal init() handler.
* @param config {Object} Config object.
* @private
*/
initializer: function(config){
this.renderUI();
this.bindUI();
},
/**
* @method renderUI
* @description Renders any UI elements for Y.Button instances
* @private
*/
renderUI: function() {
},
/**
*
*/
bindUI: function() {
var button = this;
if (e.propagate === false) {
}
});
},
/**
*
*/
getNode: function() {
return this.get('srcNode');
},
/**
*
*/
select: function() {
this.set('selected', true);
},
/**
*
*/
unselect: function() {
this.set('selected', false);
},
/**
*
*/
enable: function() {
this.set('disabled', false);
},
/**
*
*/
disable: function() {
this.set('disabled', true);
},
/**
*
*/
_labelSetter: function (value) {
},
/**
*
*/
_disabledSetter: function (value) {
},
/**
*
*/
_selectedSetter: function(value) {
},
/**
*
*/
_typeSetter: function(value) {
var button = this;
if (value === "toggle") {
}, button);
}
else {
if (button._clickHandler) {
button._clickHandler = false;
}
}
}
}, {
ATTRS: {
srcNode: {
lazyAdd: false,
valueFn: function () {
}
},
label: {
lazyAdd: false,
setter: '_labelSetter'
},
type: {
value: 'push',
lazyAdd: false,
setter: '_typeSetter'
},
disabled: {
value: false,
lazyAdd: false,
setter: '_disabledSetter'
},
selected: {
value: false,
lazyAdd: false,
setter: '_selectedSetter'
}
},
CLASS_NAMES: {
button : makeClassName(),
}
});
this.fire('click', e);
};
};
};
};
};