View Gruntfile.js
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
/*global module:false*/ | |
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
/** | |
* Watching | |
* ======== |
View gist:649049
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.delegate( | |
"contextmenu", | |
function (e) { | |
// prevent the browser's own context menu | |
e.preventDefault(); | |
var record = this._data_table.getRecord( e.target.get("id") ); | |
// build a list of menu items based on the _options data in the record | |
var menu_items = ""; |
View gist:672556
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
YUI.add( | |
"!!!", | |
function(Y, NAME) { | |
var Clazz = Y.namespace("!!!").!!! = Y.Base.create( | |
NAME, | |
!!!, | |
[], | |
{ | |
initializer: function (config) { | |
Y.log("initializer", "debug", Clazz.NAME); |
View gist:706770
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
YUI.add( | |
"lw-table_wrapper", | |
function(Y) { | |
var Clazz = Y.namespace("LW").TableWrapper = Y.Base.create( | |
"lw_table_wrapper", | |
Y.Base, | |
[], | |
{ | |
_data_table: null, |
View gist:706777
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
YUI.use( | |
"lw-table-wrapper", | |
function (Y) { | |
var myDT = new Y.LW.TableWrapper (....); | |
} | |
); |
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 : { |
View gist:776202
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
//input.yui3-aclist-input-loading { | |
// background-image: url(spinner.gif); | |
// background-repeat: no-repeat; | |
// background-position: right; | |
//} | |
desc_node.ac.on( | |
"query", | |
function (e) { |
View gist:849130
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
YUI.add( | |
"ep-data-user", | |
function (Y) { | |
var DataUser = Y.namespace("EP").DataUser = function (config) { | |
//Y.log("DataUser constructor"); | |
this.after("initializedChange", this.post_initialization, this); | |
}; | |
// | |
// these values should be overridden with defaults in the class |
View gist:858523
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
UserTag delayed_query Order list | |
UserTag delayed_query addAttr | |
UserTag delayed_query attrAlias args list | |
UserTag delayed_query attrAlias arg list | |
UserTag delayed_query hasEndTag | |
UserTag delayed_query PosNumber 1 | |
UserTag delayed_query Routine <<EOF | |
sub { | |
# This function operates as a wrapper for the [loop] coretag; the loop tag doesn't work very | |
# well with the scan/more-list functionality if the list it has is the formatted output of the |
View gist:883760
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.Node.prototype.setNumberSignClass = function (value) { | |
var POSITIVE = 'positive', | |
NEGATIVE = 'negative'; | |
if (value < 0) { | |
this.replaceClass(POSITIVE, NEGATIVE); | |
} | |
else if (value > 0) { | |
this.replaceClass(NEGATIVE, POSITIVE); | |
} |
OlderNewer