button-base.js revision d5d863b130909bcf7d7ed65e45e243ef78f51a0c
/*global Y */
/* For reference
Y.Button
public methods:
- onClick
- getDOMNode
private methods:
- _colorToHex (static)
- _getContrastYIQ (static)
attributes:
- type
- disabled
- selected
- backgroundColor
events:
- typeChange
- selectedChange
- backgroundColorChange
- disabledChange
*/
var ATTRS = {
label: {
var node = this.getDOMNode();
}
},
type: {
value: 'push',
},
if (val === "toggle") {
var node = this.getDOMNode();
var button = this;
}, this);
}
}
},
disabled: {
value: false,
},
var node = this.getDOMNode();
if (val === true) {
}
else {
}
}
},
selected: {
value: false,
var node = this.getDOMNode();
//if (value !== this.get('selected')) {
if (value) {
}
else {
}
//}
/*
else {
// Setting to same value, don't do anything (right? return false?)
}
*/
},
}
},
var node = this.getDOMNode();
}
}
};
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);
}
};
};
return this._srcNode;
};
return color;
}
};
var r, g, b, yiq;
};
var ButtonGenerator = function(config) {
var button;
return button;
};
var buttons = [];
});
});
return buttons;
};