Programatically set row height

Tags: #<Tag:0x00007f136057c4f0>

I can’t see how to programatically set a row height?

I see the rowHeights function that can be put on the table settings - but how do I go about programatically changing the row later on after initial render?

Thanks

Hey Phil,

you can use the updateSettings method. Here’s an example https://jsfiddle.net/handsoncode/3uoxnws1/

1 Like

Oh, OK. So that retains all other settings on the table, and just incrementally adds/changes the given values on the new object?

Makes sense.

Yes, the updateSettings changes only the options/hooks that you need to change but do not change the rest.

Sometimes it is the only way to change an option. Hooks can be altered by instance.addHook('hook_name', function())

1 Like

thanks