Created
July 2, 2012 16:22
-
-
Save rufuscoder/3034073 to your computer and use it in GitHub Desktop.
Sample Enyo Code
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.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