javascript - How to prevent the insertion of rows/columns in Handsontable? -
i'm using handsontable (http://handsontable.com/). want keep ability drag corner of cell have don't want user drag past table itself, creating more rows and/or cells.
how achieve this?
i've tried following doesn't anything:
allowinsertrow: false
you can define maxrows
, maxcols
have respective maximum number of rows , columns pre-defined. way, user cannot add new rows or columns.
var hot = new handsontable(container, { maxrows: 2, maxcols: 4 });
also, pay attention not include minsparerows
option , hide context menu.
Comments
Post a Comment