export class TableColumn{ data = ''; type = ''; options = { desc: { value: '', color: '', has: false } } link = undefined; constructor(data, type, option = undefined, link = undefined) { this.data = data; this.type = type; this.options = option; this.link = link; }; static make(data, type, option = undefined, link = undefined){ return new this(data, type, option, link); } } export class LinkOptions{ route = ''; options = undefined; constructor(route, options = undefined){ this.route = route; this.options = options }; static make(route, option = undefined){ return new this(route, option); } } export class TableRow{ cols = []; edit = false; constructor(cols, edit = false){ this.cols = cols, this.edit = edit }; static make(cols, edit = false){ return new this(cols, edit); } } export class Item { key = ''; title = ''; type = ''; val = null; constructor(key, title, type, val){ this.key = key; this.title = title; this.type = type; this.val = val; }; static make(key, title, type, val){ return new this(key, title, type, val); } }