Skip to content

Instantly share code, notes, and snippets.

@webOS101
Created September 11, 2014 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webOS101/4c029f7c5f93ddaf1e25 to your computer and use it in GitHub Desktop.
Save webOS101/4c029f7c5f93ddaf1e25 to your computer and use it in GitHub Desktop.
Onyx Sample
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'});
});
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