Skip to content

Instantly share code, notes, and snippets.

View ericf's full-sized avatar

Eric Ferraiuolo ericf

View GitHub Profile
Y.TabSliderParent = Y.Base.create('tabsliderparent', Y.Widget, [Y.WidgetParent], {
_tabNums : null,
initializer : function() {
//code
this._tabNums = [idnum];
//code
});
SV.push({id :
new Y.ScrollView({
srcNode: '#' + id,
height: 370
})}
);
In the table:
<inputs>
<key id="url" type="xs:string" paramType="variable" required="true" />
<key id="timeout" type="xs:integer" paramType="variable" required="false" default="25000" />
<map id="integrations" type="xs:string" paramType="variable" required="true" />
</inputs>
In the .env file:
var MyClass = Y.Base.create('my-class', Y.Base, [], {
_mergeProps: function (value, prop) {
var cur = this.get(prop);
if (Y.Lang.isUndefined(cur)) {
this.reset(prop); // will rest to { test: true } for this instance instead of always using the static default values
}
return Y.merge(cur, value);
}
}, {
ATTRS: {
// For Y.Foo
// Class extensions that will be used in the base class
function ExtA() {}
...
Y.FooExtA = ExtA;
// Base Class definition
function FooBase() {}
...
@ericf
ericf / app.js
Created May 23, 2012 16:19 — forked from jshirley/app.js
var YUI = require('yui').YUI,
Y = YUI({useSync: true});
Y.use('parallel');
require('./second');