Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collapsed rows #75

Open
suweb opened this issue May 14, 2020 · 1 comment
Open

Collapsed rows #75

suweb opened this issue May 14, 2020 · 1 comment

Comments

@suweb
Copy link

suweb commented May 14, 2020

Hi, can you advise me how to collapsed all rows by default?

@maxcreeger
Copy link

Yeah, from the documentation:

Parameter Type Default value Description
initialState String expanded Initial state of tree'expanded' - all nodes will be expanded'collapsed' - all nodes will be collapsed

Or individually per node, apply either "treegrid-expanded" or "treegrid-collapsed" to your element' CSS class:
Ex:

<tr class="treegrid-110 treegrid-parent-109 treegrid-expanded">
      <td>Stuff</td>
</tr>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants