View gist:3667321
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
// assumes existence of Y.UserModel | |
YUI.add('user-view', function (Y) { | |
Y.UserView = Y.Base.create('userView', Y.View, [ Y.ModelConsumer ], { | |
template: Y.Handlebars.templates['user'], | |
initializer: function () { | |
var user = this.get('user'); |
View gist:995783
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
Y.namespace('tnsg5').Tile = Y.Base.create("tile", Y.Widget,[], { | |
initializer: function () { | |
this.dataSource = this.getDataSourceInstance(); | |
var dsCfg = { | |
request: "cb={}", | |
callback: { | |
//HERE IS WHERE THE FUNCTION IS ADDED | |
success: Y.bind(this.onSuccessfulLoad, this) |
View gist:760148
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
/* | |
* Validator Attribute | |
* | |
* @attribute validators | |
* @type {object} | |
* @default {isNumber & customVal} | |
* @since 1.0.0 | |
*/ | |
validators : { | |
value : { |