Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

ExpandMode for only certain levels of the tree #165

Open
Nokhoneryu opened this issue Jan 31, 2019 · 4 comments
Open

ExpandMode for only certain levels of the tree #165

Nokhoneryu opened this issue Jan 31, 2019 · 4 comments

Comments

@Nokhoneryu
Copy link
Contributor

I have a very specific case on my app, in which i need to have only the first level of the hierarchy expanded and all the other collapsed. Is it possible?

@Crazyht
Copy link
Owner

Crazyht commented Jan 31, 2019

Hi @Nokhoneryu,

now it's not possible and I don't have time to do this (frankly I don't have time to spend for OSS project since few month).

@Nokhoneryu
Copy link
Contributor Author

Of course, but can you give me some hints on where i can tweak this to my project. I can then fork it so you can merge on the library if you want

@Crazyht
Copy link
Owner

Crazyht commented Jan 31, 2019

I think you need :

  • Add @input Parameter (i.e. ExpandLevel: number)
  • Add By Level Mode
  • add level parameter to setExpandForList (select.service.ts) with default value to 0
    then you can handle you new mode depending of current recursion level

@Nokhoneryu
Copy link
Contributor Author

Alright! I'll look into it! Many Thanks!

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

No branches or pull requests

2 participants