Zicrael / ngx-tree-dnd

Angular 7 support, data sortable draggable smart tree.
https://ngx-tree-dnd.stackblitz.io
MIT License
39 stars 11 forks source link

How to hide root actions buttons.? #31

Closed t2pdev01 closed 5 years ago

t2pdev01 commented 5 years ago

Can i hide main root or root actions button.?

Zicrael commented 5 years ago

Hello @t2pdev01 , Let me check, I will fix this issue today, and publish next version.

Zicrael commented 5 years ago

Hey @t2pdev01 , this feature already implemented. If you want hide action buttons, just set showActionButtons: false inside you config.

hirenkukadiya commented 5 years ago

Thanks, But hide main root action button or i want only child records there are by default main root like in your example Company Tree but i want start with direct Apple, not from company tree so how to do it?

Zicrael commented 5 years ago

@hirenkukadiya Ah i see, let me add showRootActionButtons option, and you can change it to false.

Zicrael commented 5 years ago

@hirenkukadiya , @t2pdev01 FIXED in v2.5.0. Now you can set showRootActionButtons: false in tree config.

Zicrael commented 5 years ago

I close this issue, please check example: https://stackblitz.com/edit/ngx-tree-dnd Hope you like it. Thank you for the star.