How to init height of cell?

I just wanna format design with own UX, and I have to resize cell's height, I can't find any solution. In the Menu, I find a method named 'resizeRow', that's what am I need, but I don't know how to use this method in the code, could you please tell me how to do this?



  • edited July 2019

    Hey @felix, resizeRow is a property that allows you to manually resize the rows of the datatable part of your spreadsheet, by default it is set to true for spreadsheets.

    What you are looking for is probably something in the realms of this:

    Please take a look, there are 2 cases covered here:

    1. You can set the rowHeight of every element in your current skin by setting your$active.rowHeight value to whatever height you need. Note that this will resize every element that has a rowHeight property as well.

    2. Alternatively you can set the height for a specific range of rows via $$("ss").setRowHeight([1,50],26), where your first argument is the range of your rows you want to resize, and the second argument is the height.

  • Thanks, Dzmitry, that two opinions are super useful, especially$active, I don't know this excellent method before, maybe cause I just use spreadsheets.js, and why this method can't set columnWidth?

  • columnWidth property can only be defined in the datatable config, you can't adjust the width by referencing this property specifically, use setColumnWidth() instead:

  • OK, I use setColumnWidth() method, and I have 4 sheets, so I will use setColumnWidth() method 4times to set columnwidth, but I can't listener switch sheets, "onChange" event can't worked, what should I do to listener switch sheets?

  • edited July 2019

    How about an onAfterSheetShow event?

  • Thanks a lot!!!

  • edited July 2019


    Starting from Webix 6.4.2 you can use rowHeight and columnWidth properties:

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!