A way to automatize autoFitRow

Posted by: oleksandr.sydorenko on 5 February 2018, 7:27 am EST

    • Post Options:
    • Link

    Posted 5 February 2018, 7:27 am EST

    Hey guys.

    I’m aware of ```

    autoFitRow

    
    My question - is there a way to automatize it somehow? I want this method to be applied for every row on table initialization and also any time when user paste something in the cell that exceeds row height.
    
    Example from the Google Sheets http://recordit.co/BYc51ZcbMN
    As you can see row height adjusts automatically on the paste event here.
  • Posted 6 February 2018, 3:21 am EST

  • Posted 6 February 2018, 7:06 am EST

    Got you, thanks for the reply.

    So it means that if I want to autoFit all rows with content after table initialized I need to iterate through all rows and apply autoFitRow for each of them, correct?

  • Posted 8 February 2018, 3:32 am EST

    Hello,

    That is correct, you would need to loop through each row and call autiFitRow() method to resize the rows.

    Thanks,

    Deepak Sharma

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels