Skip to content

Instantly share code, notes, and snippets.

@rufuscoder
Created July 2, 2012 16:22
Show Gist options
  • Save rufuscoder/3034073 to your computer and use it in GitHub Desktop.
Save rufuscoder/3034073 to your computer and use it in GitHub Desktop.
Sample Enyo Code
enyo.kind({
name: "Sample",
kind: "Control",
components: [
{name: "input", tag: "input"},
{tag: "br"},
{name: "button", tag: "button", content: "Button,Jim", ontap: "buttonTap"},
{tag: "br"},
{name: "output", classes: "sample-output"}
],
buttonTap: function(inSender, inEvent) {
var value = this.$.input.hasNode().value;
this.$.output.setContent(value);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment