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

Related issues

yubo111 picture yubo111  ·  3Comments

yuchonghua picture yuchonghua  ·  3Comments

chenzhe-pro picture chenzhe-pro  ·  3Comments

Kingwl picture Kingwl  ·  3Comments

gengxuelei picture gengxuelei  ·  3Comments