1
0
-1

Hi experts,

I'm trying to align text in spreadsheet to center. I tried putting this in the field format but it doesn't work. Anyone can advice?

{{renderer:function(instance, td, row, col, prop, value, cellProperties){Handsontable.renderers.TextRenderer.apply(this, arguments);td.style.text-align = 'center';}}}


I'm refering to examples in Spreadsheet Custom Field Formats

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Solved.

      {{renderer:function(instance, td, row, col, prop, value, cellProperties){Handsontable.renderers.TextRenderer.apply(this, arguments);td.style.textAlign = 'center';}}}


        CommentAdd your comment...