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

Hide "+" button from 3rd level #45

Open archanatiwari opened 5 years ago

archanatiwari commented 5 years ago

Thanks for the wonderful template. I just want to know how to disable only the "+" button from third level ?

Zicrael commented 5 years ago

@archanatiwari you can use "showExpandButton: false" in tree item options:

options: {
    showExpandButton: false
},

Or you mean 'add new item" button?

archanatiwari commented 5 years ago

In your example you have created root->apple->iPhone. My requirement is to remove the '+' icon from the iPhone row.

archanatiwari commented 5 years ago

Like you have provided the options: { showDeleteButton: false} can I use { showAddButtons: false }

@Zicrael Thank you

Zicrael commented 5 years ago

@archanatiwari Yes sure. Sorry for late answer, I do it only when have free time.