-
Notifications
You must be signed in to change notification settings - Fork 824
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
(WIP) RFC Choose react-component for base of TreeDropdownField / TreeMultiSelectField #6794
Comments
More considerations (not requirements):
|
we could simplify breadcrumbs to current level + back button to go up a level too (depth could be numeric indicator on button). Another concern is search behaviour: We probably want to design for both basic navigation, and how the interface behaves when a search is active. |
Is this still relevant @tractorcow @chillu? |
I've had a look through my "more considerations" list above, and think we've broadly got it covered. Any further search work is captured in #6842 @tractorcow Given we want to use this for groups selection in asset permissions, we need multi select as well, correct? Is that captured in a card yet? |
We will eventually need multi-select, but it's more critical to implement this as a feature of a non-hierarchal list (ListBox) before we implement a TreeMultiselectField version. For instance we will need React Listbox for selecting members in a many_many relation. |
Written up a broader card to replace #6145 (silverstripe/silverstripe-admin#52), and a separate card for potentially doing TreeMultiSelectField (silverstripe/silverstripe-admin#53). Which means we can close this one here. |
See #6141 for context.
List of possible directions are listed below. This list will be updated as we find more solutions.
tree-select component
See https://github.com/react-component/tree-select
Demo at http://react-component.github.io/tree-select/examples/big-data.html
Pros:
Cons:
This library would be the easiest to get working, although it may be tricky to build in accessibility after the fact.
react-select component
See http://jedwatson.github.io/react-select/ (live demo)
Pros:
Cons:
Looking at the designs previously mocked up, the final tree view could look like this:
jstree react
Not a solution in itself, but we could use this in tandem with either react-select, or a chosen-js react substitute.
https://github.com/alwinn1977/react-simple-jstree
https://github.com/chenglou/react-chosen
Pros:
Cons:
iOS style drill down tree list
As no existing component exists with this functionality (in the reactJS world) we would probably need to either build this from scratch, or base it on react-select with heavy customisation.
The text was updated successfully, but these errors were encountered: