Created
September 11, 2014 17:29
-
-
Save webOS101/4c029f7c5f93ddaf1e25 to your computer and use it in GitHub Desktop.
Onyx Sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enyo.ready(function() { | |
enyo.kind({ | |
name: 'OnyxSample', | |
components: [ | |
{ kind: 'onyx.Toolbar', components: [ | |
{ content: 'Toolbar' }, | |
{ kind: 'onyx.Button', content: 'Toolbar Button' } | |
]}, | |
{ content: 'Radio Group' }, | |
{ kind: 'onyx.RadioGroup', onActivate: 'activated', components: [ | |
{ content: 'One', active: true }, | |
{ content: 'Two' }, | |
{ content: 'Three' } | |
]}, | |
{ content: 'Groupbox' }, | |
{ kind: 'onyx.Groupbox', components: [ | |
{ kind: 'onyx.GroupboxHeader', content: 'Groupbox Header' }, | |
{ content: 'Groupbox item' } | |
]}, | |
{ content: 'ProgressBar' }, | |
{ kind: 'onyx.ProgressBar', progress: 25 } | |
], | |
activated: function(sender, event) { | |
// React to radio button activation change | |
} | |
}); | |
new enyo.Application({name: 'app', view: 'OnyxSample'}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Onyx Sample | |
description: Various Onyx controls | |
authors: | |
- Roy Sutton | |
normalize_css: no |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment