Element: [Feature Request] Expand / Collapse all rows programmatically

Created on 5 Apr 2018  ·  5Comments  ·  Source: ElemeFE/element

Existing Component

Yes

Component Name

Table

Description

I want to expand / collapse all rows programmatically. How to do that? Need to loop all rows? There's a columns collection. But I don't find rows collection. Please advise. Thanks.

Most helpful comment

All 5 comments

Run toggleRowExpansion against each row.

How to loop the row?

Fantastic, thanks!

The link is not working in IE. But I think it's IE forEach problem.

Was this page helpful?
0 / 5 - 0 ratings