0

I am trying to make an input box which spans the 3 columns of the table. From looking online it seems like I need to use the

setStyleAttribute

but I am not sure and cannot decipher the documentation. I know from here that

A flexible table that creates cells on demand. It can be jagged (that is, each row can contain a different number of cells) and individual cells can be set to span multiple rows or columns.

user1543042
  • 3,422
  • 1
  • 17
  • 31

1 Answers1

1

Your hunch is correct, use setStyleAttribute to set the appropriate margin to a NEGATIVE value. if all the columns on your flextable are 40px wide, your control is in cell 0,0, and you want it to span across columns 1 & 2, you would use something like this:

app.getElementById('x').setStyleAttributes({'marginRight':'-80'});

see here for some variations on the property assignments, though the method syntax needs to follow the format given in the Google documentation

Tim
  • 756
  • 1
  • 7
  • 12