forked from mui/mui-x
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TreeView] Add
expansionTrigger
prop (mui#13533)
Signed-off-by: Nora <[email protected]> Co-authored-by: Flavien DELANGLE <[email protected]>
- Loading branch information
1 parent
410acf1
commit 204b522
Showing
29 changed files
with
171 additions
and
209 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
docs/data/tree-view/rich-tree-view/customization/IconExpansionTreeView.tsx.preview
This file was deleted.
Oops, something went wrong.
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
1 change: 1 addition & 0 deletions
1
docs/data/tree-view/rich-tree-view/expansion/IconExpansionTreeView.tsx.preview
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 @@ | ||
<RichTreeView items={MUI_X_PRODUCTS} expansionTrigger="iconContainer" /> |
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
57 changes: 0 additions & 57 deletions
57
docs/data/tree-view/simple-tree-view/customization/IconExpansionTreeView.js
This file was deleted.
Oops, something went wrong.
60 changes: 0 additions & 60 deletions
60
docs/data/tree-view/simple-tree-view/customization/IconExpansionTreeView.tsx
This file was deleted.
Oops, something went wrong.
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
28 changes: 28 additions & 0 deletions
28
docs/data/tree-view/simple-tree-view/expansion/IconExpansionTreeView.js
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,28 @@ | ||
import * as React from 'react'; | ||
import Box from '@mui/material/Box'; | ||
import { SimpleTreeView } from '@mui/x-tree-view/SimpleTreeView'; | ||
import { TreeItem } from '@mui/x-tree-view/TreeItem'; | ||
|
||
export default function IconExpansionTreeView() { | ||
return ( | ||
<Box sx={{ minHeight: 352, minWidth: 250 }}> | ||
<SimpleTreeView aria-label="icon expansion" expansionTrigger="iconContainer"> | ||
<TreeItem itemId="grid" label="Data Grid"> | ||
<TreeItem itemId="grid-community" label="@mui/x-data-grid" /> | ||
<TreeItem itemId="grid-pro" label="@mui/x-data-grid-pro" /> | ||
<TreeItem itemId="grid-premium" label="@mui/x-data-grid-premium" /> | ||
</TreeItem> | ||
<TreeItem itemId="pickers" label="Date and Time Pickers"> | ||
<TreeItem itemId="pickers-community" label="@mui/x-date-pickers" /> | ||
<TreeItem itemId="pickers-pro" label="@mui/x-date-pickers-pro" /> | ||
</TreeItem> | ||
<TreeItem itemId="charts" label="Charts"> | ||
<TreeItem itemId="charts-community" label="@mui/x-charts" /> | ||
</TreeItem> | ||
<TreeItem itemId="tree-view" label="Tree View"> | ||
<TreeItem itemId="tree-view-community" label="@mui/x-tree-view" /> | ||
</TreeItem> | ||
</SimpleTreeView> | ||
</Box> | ||
); | ||
} |
28 changes: 28 additions & 0 deletions
28
docs/data/tree-view/simple-tree-view/expansion/IconExpansionTreeView.tsx
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,28 @@ | ||
import * as React from 'react'; | ||
import Box from '@mui/material/Box'; | ||
import { SimpleTreeView } from '@mui/x-tree-view/SimpleTreeView'; | ||
import { TreeItem } from '@mui/x-tree-view/TreeItem'; | ||
|
||
export default function IconExpansionTreeView() { | ||
return ( | ||
<Box sx={{ minHeight: 352, minWidth: 250 }}> | ||
<SimpleTreeView aria-label="icon expansion" expansionTrigger="iconContainer"> | ||
<TreeItem itemId="grid" label="Data Grid"> | ||
<TreeItem itemId="grid-community" label="@mui/x-data-grid" /> | ||
<TreeItem itemId="grid-pro" label="@mui/x-data-grid-pro" /> | ||
<TreeItem itemId="grid-premium" label="@mui/x-data-grid-premium" /> | ||
</TreeItem> | ||
<TreeItem itemId="pickers" label="Date and Time Pickers"> | ||
<TreeItem itemId="pickers-community" label="@mui/x-date-pickers" /> | ||
<TreeItem itemId="pickers-pro" label="@mui/x-date-pickers-pro" /> | ||
</TreeItem> | ||
<TreeItem itemId="charts" label="Charts"> | ||
<TreeItem itemId="charts-community" label="@mui/x-charts" /> | ||
</TreeItem> | ||
<TreeItem itemId="tree-view" label="Tree View"> | ||
<TreeItem itemId="tree-view-community" label="@mui/x-tree-view" /> | ||
</TreeItem> | ||
</SimpleTreeView> | ||
</Box> | ||
); | ||
} |
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
Oops, something went wrong.