Open markatbdex opened 10 years ago
not at this time. to be honest, I did not thing of such a feature...
Can you elaborate on what you mean by disabled? Do you mean that the tree will not react to click events at all, and will only be driven by the expanded-nodes
and selected-node
directive attributes?
Hi Yoav,
Thanks for getting back to me. Looking for something where the user cannot modify the content of the tree after it is saved. But on the modify view we wanted to expand the tree to the last selected element by the user to show them the selection and then disable everything.
I figured out something that seems to work using the inject classes option.
injectClasses: {
"ul": "disabled",
"li": "disabled",
"liSelected": "disabled",
"iExpanded": "disabled",
"iCollapsed": "disabled",
"iLeaf": "disabled",
"label": "disabled",
"labelSelected": "disabled",
"span" : "disabled"
}
.disabled{ pointer-events:none; }
Mark
From: Yoav Abrahami notifications@github.com Sent: Friday, September 19, 2014 3:27 PM To: wix/angular-tree-control Cc: Mark Fuini Subject: Re: [angular-tree-control] Disabled? (#55)
not at this time. to be honest, I did not thing of such a feature...
Can you elaborate on what you mean by disabled? Do you mean that the tree will not react to click events at all, and will only be driven by the expanded-nodes and selected-node directive attributes?
Reply to this email directly or view it on GitHubhttps://github.com/wix/angular-tree-control/issues/55#issuecomment-56223325.
Is there an easy way or any way to have the tree expanded with selection as in a modify view but yet have the entire tree disabled?
Thanks!