button-base-debug.js revision f2f4cf0bf9baecf5e1c484ed72786b03062e83cf
}
/**
* @method initializer
* @description Internal init() handler.
* @param config {Object} Config object.
* @private
*/
initializer: function(config){
this.renderUI();
this.bindUI();
},
/**
* @method destructor
* @description
* @param config {Object} Config object.
* @private
*/
destructor: function () {
},
/**
*
*/
renderUI: function() {
},
/**
*
*/
bindUI: function() {
mousedown: function(e){
},
mouseup: function(e){
},
focus: function(e){
},
blur: function(e){
}
});
if(this.onClickfn) {
this.onClickfn(e);
}
}, this);
this.on('selectedChange', function(e){
if (e.propagate === false) {
}
}, this);
},
/**
*
*/
},
/**
*
*/
getNode: function() {
return this._srcNode;
},
/**
*
*/
select: function() {
this.set('selected', true);
},
/**
*
*/
deselect: function() {
this.set('selected', false);
},
/**
*
*/
enable: function() {
this.set('disabled', false);
},
/**
*
*/
disable: function() {
this.set('disabled', true);
},
/**
*
*/
setBackgroundColor: function(color) {
},
/**
*
*/
_labelSetter: function (value) {
},
/**
*
*/
_disabledSetter: function (value) {
if (value === true) {
}
else {
}
},
/**
*
*/
_selectedSetter: function(value) {
if (value) {
}
else {
}
},
/**
*
*/
_typeSetter: function(value) {
if (value === "toggle") {
}, this);
}
else {
if (this._clickHandler) {
this._clickHandler.detach();
this._clickHandler = false;
}
}
},
/**
*
*/
_backgroundColorSetter: function(color){
}
}, {
ATTRS: {
label: {
setter: '_labelSetter'
},
type: {
value: 'push',
setter: '_typeSetter'
},
disabled: {
value: false,
setter: '_disabledSetter'
},
selected: {
value: false,
setter: '_selectedSetter'
},
setter: '_backgroundColorSetter'
}
},
CLASS_NAMES: {
button : makeClassName(),
}
});
function colorToHex(color) {
return color;
}
};
function getContrastYIQ (hexcolor){
var r, g, b, yiq;
};
function makeClassName(str) {
if (str) {
}
else {
}
}