@extjs/sencha-cmd-linux-32
Version:
Productivity and performance optimization tool for building applications with Sencha Ext JS and Sencha Touch.
30 lines (26 loc) • 824 B
JavaScript
;
var Text = require('../export/type/Text.js');
module.exports = {
init(runtime) {
runtime.register({
headers: function (from, to) {
var fromVal, toVal,
headers = [], h;
if (from.$isFashionLiteral && from.value == 'all') {
fromVal = 1;
toVal = 6;
} else {
fromVal = this.unbox(from);
toVal = this.unbox(to);
}
for (h = fromVal; h < toVal + 1; h++) {
headers.push("h" + h);
}
return new Text(headers.join(", "));
},
headings: function (from, to) {
return this.headers(from, to);
}
});
}
};