diff options
Diffstat (limited to 'html/lib/onyx/source/Button.js')
-rw-r--r-- | html/lib/onyx/source/Button.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/html/lib/onyx/source/Button.js b/html/lib/onyx/source/Button.js new file mode 100644 index 0000000..b13c334 --- /dev/null +++ b/html/lib/onyx/source/Button.js @@ -0,0 +1,18 @@ +/** + A button in the onyx style. The color of the button may be customized by + applying a background color. + + The *onyx-affirmative*, *onyx-negative*, and *onyx-blue* classes provide + some built-in presets. + + {kind: "onyx.Button", content: "Button"}, + {kind: "onyx.Button", content: "Affirmative", classes: "onyx-affirmative"}, + {kind: "onyx.Button", content: "Negative", classes: "onyx-negative"}, + {kind: "onyx.Button", content: "Blue", classes: "onyx-blue"}, + {kind: "onyx.Button", content: "Custom", style: "background-color: purple; color: #F1F1F1;"} +*/ +enyo.kind({ + name: "onyx.Button", + kind: "enyo.Button", + classes: "onyx-button enyo-unselectable" +});
\ No newline at end of file |