Search code examples
vue.jshandsontable

columnSummary is not added


I am trying to add columnSummary to my table using Handsontable. But it seems that the function does not fire. The stretchH value gets set and is set properly. But it does not react to the columnSummary option:

this.$refs.hot.hotInstance.updateSettings({stretchH: 'all',columnSummary: [
        {
           destinationRow: 0,
           destinationColumn: 2,
           reversedRowCoords: true,
           type: 'custom',
           customFunction: function(endpoint) {
            console.log("TEST");
           }
       }]
 }, false);

I have also tried with type:'sum' without any luck.

Thanks for all help and guidance!


Solution

  • columnSummary cannot be changed with updateSettings: GH #3597

    You can set columnSummary settings at the initialization of Handsontable.