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

Disabled? #55

Open
markatbdex opened this issue Sep 19, 2014 · 2 comments
Open

Disabled? #55

markatbdex opened this issue Sep 19, 2014 · 2 comments

Comments

@markatbdex
Copy link

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!

@markatbdex markatbdex changed the title Readonly? Disabled? Sep 19, 2014
@yoavaa
Copy link
Contributor

yoavaa commented Sep 19, 2014

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?

@markatbdex
Copy link
Author

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//issues/55#issuecomment-56223325.

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