add column dynamically to handsontable -


I want to add a handful column dynamically I do not see a sample anywhere, nor do I see it in the API One way to do is to appear. Has anyone taken a way to overcome it or to find some sample code that I can see that will help it?

Thanks

To temporarily retain a data table, when a new column is required, update the data structure and reconstruct the entire table. Perhaps the following snippets may be useful to you.

  (function ($) {$ (function () {var data = [['a', 'b', 'c', 'd'], [1, 1, 1] $ 1 (), [2, 2, 2, 2]] $ ('# A-divi'). (Handheld data: data)) / * Adding a new column * / data [0]. 'E'); var len = data.length; for (var i = 1; i & lt; len; i ++) {data [i] .push (i);} $ ('#a-div') / (Data: data}) / * If the new column is not on the tail / / data [0]. System (idx, 0, "f");})}} (jquery);  / Pre>  

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -