Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. function Column (params)
  2. {
  3. this.text = params.text;
  4. this.cssclass = params.cssclass
  5. }
  6. function Row(params) {
  7. this.name = params.name;
  8. let columns = [];
  9. for(let i = 0; i < params.columns.length; i++)
  10. {
  11. columns.push(new Column(params.columns[i]));
  12. }
  13. this.columns = columns;
  14. }
  15.  
  16. var columnStyle0 = {text: '1', cssclass: 'col-lg-12'};
  17. var columnStyle1 = {text: '1', cssclass: 'col-lg-6'};
  18. var columnStyle2 = {text: '1', cssclass: 'col-lg-4'};
  19. var columnStyle3 = {text: '2', cssclass: 'col-lg-8'};
  20.  
  21. var columnCombination0 = [columnStyle0];
  22. var columnCombination1 = [columnStyle1,columnStyle1];
  23. var columnCombination2 = [columnStyle2,columnStyle3];
  24. var columnCombination3 = [columnStyle3,columnStyle2];
  25.  
  26.  
  27. var rowStyle0 = { name:'1', columns: columnCombination0 };
  28. var rowStyle1 = { name:'1-1', columns: columnCombination1 };
  29. var rowStyle2 = { name:'1-2', columns: columnCombination2 };
  30. var rowStyle3 = { name:'2-1', columns: columnCombination3 };
  31. var rowInstance0 = new Row(rowStyle0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement