base.js revision 666fb1af175d6536aa882340e6249b6733bf6bf2
/*global Y */
/* For reference
Y.Button
public methods:
- onClick
- getDOMNode
- changeColor
private methods:
- _colorToHex
- _getContrastYIQ,
events:
- selectedChange
- disabledChange
attributes:
- srcNode
- type
- disabled
- selected
*/
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) {
}
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;
};
/* A few methods to handle color contrast, not sure if these will make it in the final build or not */
var node = this.getDOMNode();
};
return color;
}
};
var r, g, b, yiq;
};
var ButtonGenerator = function(config) {
var button;
return button;
};
var buttons = [];
});
});
return buttons;
};