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
export NONE='' | |
export BLACK='\\033[0;30m' | |
export RED='\\033[0;31m' | |
export GREEN='\\033[0;32m' | |
export BROWN='\\033[0;33m' | |
export BLUE='\\033[0;34m' | |
export PURPLE='\\033[0;35m' | |
export CYAN='\\033[0;36m' | |
export LIGHT_GREY='\\033[0;37m' | |
export DARK_GREY='\\033[1;30m' |
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
/* Assuming: | |
* dataview is a { xtype: "list" } | |
* dataview.itemTpl includes a <div class="deleteplaceholder"></div> | |
* | |
* Delete button will disappear as soon as something is touched | |
*/ | |
dataview.on("itemswipe", function(dataview, ix, target, record, event, options) { | |
if (event.direction == "left") { | |
var del = Ext.create("Ext.Button", { |
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
var removeEmpty = function(object) { | |
if (!_.isObject(object)) { | |
return; | |
} | |
_.keys(object).forEach(function(key) { | |
var localObj = object[key]; | |
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
class RepeatTableHeadersHandler extends Paged.Handler { | |
constructor(chunker, polisher, caller) { | |
super(chunker, polisher, caller) | |
this.splitTablesRefs = [] | |
} | |
afterPageLayout(pageElement, page, breakToken, chunker) { | |
this.chunker = chunker | |
this.splitTablesRefs = [] |