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.AjaxSource.create({ name: 'ajax' }); | |
var collection = new enyo.Collection({ | |
source: 'ajax', | |
url: 'https://api.github.com/users/enyojs/repos' | |
}); | |
enyo.kind({ | |
name: 'RepoView', | |
kind: 'DataRepeater', |
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: 'Light', | |
style: 'width: 50px; height: 50px; border-radius: 50%;' + | |
'background: yellow;' | |
}); | |
new enyo.Application({name: 'app', view: 'Light'}); | |
}); |
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: 'Light', | |
color: 'yellow', | |
style: 'width: 50px; height: 50px; border-radius: 50%;', | |
create: function() { | |
this.inherited(arguments); | |
this.colorChanged(); | |
}, | |
colorChanged: function(oldValue) { |
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: 'Light', | |
color: 'yellow', | |
style: 'width: 50px; height: 50px; border-radius: 50%;', | |
create: function() { | |
this.inherited(arguments); | |
this.colorChanged(); | |
}, | |
colorChanged: function(oldValue) { |
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: 'Light', | |
color: 'yellow', | |
style: 'width: 50px; height: 50px; border-radius: 50%;', | |
create: function() { | |
this.inherited(arguments); | |
this.colorChanged(); | |
}, | |
colorChanged: function(oldValue) { |
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: 'Light', | |
color: 'yellow', | |
style: 'width: 50px; height: 50px; border-radius: 50%;', | |
create: function() { | |
this.inherited(arguments); | |
this.colorChanged(); | |
}, | |
colorChanged: function(oldValue) { |
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: 'Light', | |
color: 'yellow', | |
style: 'width: 50px; height: 50px; border-radius: 50%;', | |
create: function() { | |
this.inherited(arguments); | |
this.colorChanged(); | |
}, | |
colorChanged: function(oldValue) { |
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: 'Eventer', | |
handlers: { ontap: 'myTap' }, | |
events: { onMyEvent: '' }, | |
content: 'Click for the answer', | |
myTap: function() { | |
this.doMyEvent({ answer: 42 }); | |
} | |
}); |
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: 'Signaller', | |
components: [ | |
{ kind: 'Button', content: 'Click', ontap: 'sendit' } | |
], | |
sendit: function() { | |
enyo.Signals.send('onButtonSignal'); | |
} | |
}); |
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: 'InstanceCounter', | |
constructor: function() { | |
InstanceCounter.count += 1; | |
this.inherited(arguments); | |
}, | |
statics: { | |
count: 0, | |
currentCount: function() { |
OlderNewer