<div id="table1" class="table"></div> <button id="fullWidth">Strech to full width</button>
.table1 {width: 100%;}
var myData = Handsontable.helper.createSpreadsheetData(10, 5); var container = document.getElementById('table1'); var table1 = new Handsontable(container, {data: myData, stretchH: "none", colHeaders: true }); Handsontable.Dom.addEvent(fullWidth, 'click', function () { table1.updateSettings({ stretchH: "all" }); });
--
You received this message because you are subscribed to the Google Groups "Handsontable" group.
To unsubscribe from this group and stop receiving emails from it, send an email to handsontable...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.