Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Column (params)
- {
- this.text = params.text;
- this.cssclass = params.cssclass
- }
- function Row(params) {
- this.name = params.name;
- let columns = [];
- for(let i = 0; i < params.columns.length; i++)
- {
- columns.push(new Column(params.columns[i]));
- }
- this.columns = columns;
- }
- var columnStyle0 = {text: '1', cssclass: 'col-lg-12'};
- var columnStyle1 = {text: '1', cssclass: 'col-lg-6'};
- var columnStyle2 = {text: '1', cssclass: 'col-lg-4'};
- var columnStyle3 = {text: '2', cssclass: 'col-lg-8'};
- var columnCombination0 = [columnStyle0];
- var columnCombination1 = [columnStyle1,columnStyle1];
- var columnCombination2 = [columnStyle2,columnStyle3];
- var columnCombination3 = [columnStyle3,columnStyle2];
- var rowStyle0 = { name:'1', columns: columnCombination0 };
- var rowStyle1 = { name:'1-1', columns: columnCombination1 };
- var rowStyle2 = { name:'1-2', columns: columnCombination2 };
- var rowStyle3 = { name:'2-1', columns: columnCombination3 };
- var rowInstance0 = new Row(rowStyle0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement