UNPKG

@neoprospecta/angular-data-box

Version:

Data table with REST implementation.

36 lines 2.44 kB
var DataBoxColumn = (function () { function DataBoxColumn(object) { this.sort = true; // if should sort the column this.search = true; // if should include the the column in the search this.align = 'left'; // where the content should be aligned this.fitText = false; // if true, the width of the table will be equal que text contained in it this.editable = false; // Allow object edition directly in the table this.selectable = false; // Allow object edition directly in the table this.attr = (object && object.attr) ? object.attr : undefined; this.attr2 = (object && object.attr2) ? object.attr2 : undefined; this.arrayAttr = (object && object.arrayAttr) ? object.arrayAttr : undefined; this.header = (object && object.header) ? object.header : undefined; this.sort = (object && object.sort) ? object.sort : undefined; this.search = (object && object.search) ? object.search : undefined; this.align = (object && object.align) ? object.align : undefined; this.fitText = (object && object.fitText) ? object.fitText : undefined; this.tooltip = (object && object.tooltip) ? object.tooltip : undefined; this.maxLength = (object && object.maxLength) ? object.maxLength : undefined; this.editable = (object && object.editable) ? object.editable : false; this.selectable = (object && object.selectable) ? object.selectable : false; this.type = (object && object.type) ? object.type : 'text'; this.dateFormat = (object && object.dateFormat) ? object.dateFormat : 'dd/MM/yy'; this.currencyLocation = (object && object.currencyLocation) ? object.currencyLocation : 'USD'; this.max = (object && object.max) ? object.max : undefined; this.min = (object && object.min) ? object.min : undefined; this.options = (object && object.options) ? object.options : []; this.unique = (object && object.unique) ? object.unique : false; this.actions = (object && object.actions) ? object.actions : []; this.fontIcon = (object && object.fontIcon) ? object.fontIcon : undefined; this.colorIcon = (object && object.colorIcon) ? object.colorIcon : 'black'; this.disable = (object && object.disable) ? object.disable : false; } return DataBoxColumn; }()); export { DataBoxColumn }; //# sourceMappingURL=data-box-column.model.js.map