-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLAY-863] MultiLevelSelect: expansion improvement and no pills option (
#2628) **What does this PR do?** 1- Adds in the the new inputDisplay prop with default set to 'pills'. Can be optionally set to 'none' if no pills wanted in input field 2- If items already checked on first load, dropdown should show tree expanded to show checked items 3- Fixed padding on input so it is closer UI wise to TextInupt To see 1 and 2 in action, see codesandbox[ HERE](https://codesandbox.io/s/multilevelselect-inputdisplay-prop-expand-to-show-checked-gq4zkr) [RUNWAY TICKET](https://nitro.powerhrg.com/runway/backlog_items/PLAY-863) **Screenshots:**  --------- Co-authored-by: Jasper Furniss <[email protected]>
- Loading branch information
1 parent
6229102
commit 8b76840
Showing
5 changed files
with
76 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
.../playbook/pb_multi_level_select/docs/_multi_level_select_return_all_selected.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
The `returnAllSelected` or `return_all_selected` prop can be used when users want data on all checked nodes from the dropdown, irrespective of whether it is a parent or child node. | ||
|
||
__NOTE__ :This variant also does not automatically uncheck the parent when any of the child nodes are unchecked. `returnAllSelected` is set to false by default. | ||
__NOTE__: This variant also does not automatically uncheck the parent when any of the child nodes are unchecked. `returnAllSelected` is set to false by default. | ||
|
||
__NOTE__: For larger trees that may return many pill selections, you can optionally set `input_display: "none"`(for Rails) or `inputDisplay = "none"`(for React) to hide all pills within the input. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters