matrix: add borders option
This commit is contained in:
parent
ed683509d4
commit
00d76db844
3 changed files with 17 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ class Matrix extends _matrix_base {
|
|||
start:0,
|
||||
spacing:0,
|
||||
traversing:true,
|
||||
borders:true,
|
||||
props:{},
|
||||
|
||||
_value: 'value',
|
||||
|
|
@ -55,6 +56,8 @@ class Matrix extends _matrix_base {
|
|||
this.widget.style.setProperty('--rows', this.getProp('matrix')[1])
|
||||
this.widget.style.setProperty('--spacing', this.getProp('spacing') + 'rem')
|
||||
|
||||
if (this.getProp('borders') === false) this.widget.classList.add('noborders')
|
||||
|
||||
if (parser.widgets[this.getProp('widgetType')]) {
|
||||
|
||||
for (var i = this.start; i < this.getProp('matrix')[0] * this.getProp('matrix')[1] + this.start; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue