ce icon indicating copy to clipboard operation
ce copied to clipboard

Unable to initialize row height when loading a table

Open dana-crypto opened this issue 6 years ago • 2 comments

On the https://bossanova.uk/jexcel/v3/docs/getting-started page, there is an example of how to set row heights when initializing a table. However, the existing solution appears to be an associative array with incorrect syntax and it creates an error on loading the page. I have tried correcting the syntax but have been unable to get this feature to work. This is the instruction and example from the page:

"The inital row height can be defined in the height property include in the rows directive.

"

dana-crypto avatar Feb 05 '20 21:02 dana-crypto

Sorry, it seems there is an error in the documentation. This would do the trick, I will fix the documentation.

var options = {
    data: [[1,2,3,4,5,6,7,8,9,10]],
    minDimensions:[10,10],
    rows:{ 2:{height:'100px'} },
}

pphod avatar Feb 05 '20 22:02 pphod

Perfect, thank you!

dana-crypto avatar Feb 06 '20 16:02 dana-crypto