base.js revision eff05f7c33e07afb36ce2845041322e83445a05e
/*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) {
}
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;
};