Lots of changes
This commit is contained in:
@@ -9,42 +9,46 @@ export class TableColumn{
|
||||
}
|
||||
}
|
||||
link = undefined;
|
||||
constructor(data, type, option = undefined, link = undefined) {
|
||||
constructor(data, type, options = {}, link = undefined) {
|
||||
this.data = data;
|
||||
this.type = type;
|
||||
this.options = option;
|
||||
this.options = options;
|
||||
this.link = link;
|
||||
};
|
||||
|
||||
static make(data, type, option = undefined, link = undefined){
|
||||
return new this(data, type, option, link);
|
||||
static make(data, type, options = {}, link = undefined){
|
||||
return new this(data, type, options, link);
|
||||
}
|
||||
}
|
||||
|
||||
export class LinkOptions{
|
||||
route = '';
|
||||
options = undefined;
|
||||
constructor(route, options = undefined){
|
||||
css = undefined;
|
||||
constructor(route, options = undefined, css = undefined){
|
||||
this.route = route;
|
||||
this.options = options
|
||||
this.options = options;
|
||||
this.css = css
|
||||
};
|
||||
|
||||
static make(route, option = undefined){
|
||||
return new this(route, option);
|
||||
static make(route, option = {}, css = undefined){
|
||||
return new this(route, option, css);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export class TableRow{
|
||||
cols = [];
|
||||
options = {};
|
||||
edit = false;
|
||||
constructor(cols, edit = false){
|
||||
this.cols = cols,
|
||||
this.edit = edit
|
||||
constructor(cols, options = {}, edit = false){
|
||||
this.cols = cols;
|
||||
this.options = options;
|
||||
this.edit = edit;
|
||||
};
|
||||
|
||||
static make(cols, edit = false){
|
||||
return new this(cols, edit);
|
||||
static make(cols, options, edit = false){
|
||||
return new this(cols, options, edit);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user