Created
September 15, 2014 20:19
-
-
Save webOS101/4ef31f02ed94b01b76d4 to your computer and use it in GitHub Desktop.
List 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: 'ListSample', | |
kind: 'List', | |
count: 10000, | |
handlers: { | |
onSetupItem: 'setupItem', | |
ontap: 'tapped' | |
}, | |
components: [{ name: 'text' }], | |
setupItem: function(sender, event) { | |
this.set('$.text.content', 'This is row ' + event.index); | |
return(true); | |
}, | |
tapped: function(sender, event) { | |
enyo.log(event.index); | |
} | |
}); | |
new enyo.Application({ name: 'app', view: 'ListSample' }); | |
}); |
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: List Sample | |
description: Using the List layout component | |
authors: | |
- Roy Sutton | |
normalize_css: no |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment