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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -