Lots of changes

This commit is contained in:
Simon Pocrnjič
2024-11-13 22:11:07 +01:00
parent 90a5858320
commit 953ff38d64
76 changed files with 2822 additions and 427 deletions
+17 -13
View File
@@ -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);
}
}