-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tree): add Tree Collapse Grid State/Preset
- add ways to reapply Tree Collapse previous state whenever we want - add `initiallyCollapsed` flag to Tree Data Option to allow loading the grid as collapsed or not from the start (defaults to false) - add Grid Preset that can be used with Grid State - add `__hasChildren` flag to every dataset item that will always be included & also refactor Tree Formatters to use this new flag instead of querying next item - add `__collapsed` flag on all items which are parents, in other words don't add this flag to child item that have no children themselves
- Loading branch information
1 parent
3702ed3
commit 998b01a
Showing
31 changed files
with
1,082 additions
and
537 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
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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export type ToggleStateChangeTypeString = 'toggle-collapse' | 'toggle-expand' | 'full-collapse' | 'full-expand'; | ||
|
||
export enum ToggleStateChangeType { | ||
/** full tree collapse */ | ||
toggleCollapse = 'toggle-collapse', | ||
|
||
/** full tree expand */ | ||
fullExpand = 'full-expand', | ||
|
||
/** item toggle collapse */ | ||
fullCollapse = 'full-collapse', | ||
|
||
/** item toggle expand */ | ||
toggleExpand = 'toggle-expand', | ||
} |
Oops, something went wrong.