4
<!-- reset the default browser styles -->
7
/* Fix this - Shouldn't require body specificity */
8
body .yui3-button-selected {
9
background-color:#426FD9;
15
<script src='../../../../build/yui/yui-min.js'></script>
19
base: '../../../../build/',
23
}).use('button', 'console', function(Y){
25
new Y.Console().render();
27
var push = new Y.Button({
28
label: 'Click to select',
29
srcNode: Y.one('#push')
31
push.on('click', function(e){
32
push.set('selected', true);
35
push.once('selectedChange', function(){
36
push.set('label', 'Click to disable');
37
push.on('click', function(){
38
push.set('label', 'Disabled');
39
push.set('selected', false);
40
push.set('disabled', true);
44
var toggle = new Y.ToggleButton({
45
label: 'Click to toggle',
49
var disabled = new Y.Button({
54
toggle.on('click', function(e){
61
<body class='yui3-skin-sam'>
63
<div id='yconsole'></div>
65
<h1>Button Example: Basic</h1>
69
<h2>Push w/ event</h2>
70
<button id='push' tabindex='3'>Button</button>
77
<input type='button' id='toggle' value='Toggle'></input>
84
<input type='button' id='disabled' value='disabled'></input>
b'\\ No newline at end of file'