-
Notifications
You must be signed in to change notification settings - Fork 380
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
#default expanded treeItem #1084
Conversation
Hi @amirmsai - thanks for the PR. |
Hi,
the idea is to use the tree with default Selected Nodes : is to define
the nodes to be expanded.
I use this logic to define the current selected (expanded) node.
For example: i use the tree to manage permission in SPo then i cannot load
all the items (sites, lists, items...), i load only the childs of current
selected item and to manage this scenario it's important to know the
selected item (then to know the item where i have childs).
best regards
Amir MSAI
Le sam. 8 janv. 2022 à 18:42, Alex Terentiev ***@***.***> a
écrit :
… Hi @amirmsai <https://github.com/amirmsai> - thanks for the PR.
Could you please explain the logic of this property? Especially when it
works in combination with defaultSelectedNodes.
The final "set" of the expanded node would be an aggregation of the ones
from new property and the ones that are expanded because on the selection?
—
Reply to this email directly, view it on GitHub
<#1084 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKWKK277MCQW25DRLOLM6QTUVBZOTANCNFSM5K4JXC7Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Sorry @amirmsai - could you please provide an example? |
Hi,
the idea is to define the best performance: that means i can only expand a
sub Node if i have the her Id in the defaultSelectedKeys List.
For example in SharePoint : the tree to show all elements will be
showed through a level and when i click on Node I can charge the childs,
but if I have a list of defaultExpandedKeys it will be automatically
loaded to show the predefined Node.
Le sam. 29 janv. 2022 à 18:35, Alex Terentiev ***@***.***> a
écrit :
… Sorry @amirmsai <https://github.com/amirmsai> - could you please provide
an example?
Let's say I have some defaultExpandedKeys and I also have expandToSelected
set to true and some defaultSelectedKeys. What will be the result for the
expanded items in the tree? Union? Intersection? or one property will be
ignored?
—
Reply to this email directly, view it on GitHub
<#1084 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKWKK27I4QM3FOPED2X5FY3UYQQPXANCNFSM5K4JXC7Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks @amirmsai! |
Hi Alex,
it's very nice :)
Can you please add my name "Amir MSAI" as a contributor ?
Thanks
Le ven. 18 mars 2022 à 20:01, Alex Terentiev ***@***.***> a
écrit :
… Thanks @amirmsai <https://github.com/amirmsai>!
I will merge the PR and will see how it works in different configurations.
—
Reply to this email directly, view it on GitHub
<#1084 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKWKK24VF4UVA7FFSTJ57ZDVATHHRANCNFSM5K4JXC7Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
What's in this Pull Request?
define the default expanded items in the tree
Guidance