Monkeytalk JS getting length of table

685 Views Asked by At

I have a table I need to get the number of rows on. I'm trying this

this.app.table("#1").length

but it returns 0 or 1. I'm not very familiar with javascript

2

There are 2 best solutions below

0
On BEST ANSWER
this.app.table("#1").get("x", "size");

Thats what someone in the monkeytalk-forum said and it is working! :)

3
On

try

this.app.table("#1")[0].rows.length