-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Cleanup of the Tree View demos (#13237)
- Loading branch information
1 parent
3603494
commit 20c0f52
Showing
134 changed files
with
1,182 additions
and
971 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +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 FirstComponent() { | ||
return ( | ||
<SimpleTreeView | ||
aria-label="file system navigator" | ||
sx={{ height: 200, flexGrow: 1, maxWidth: 400, overflowY: 'auto' }} | ||
> | ||
<TreeItem itemId="1" label="Applications"> | ||
<TreeItem itemId="2" label="Calendar" /> | ||
</TreeItem> | ||
<TreeItem itemId="5" label="Documents"> | ||
<TreeItem itemId="10" label="OSS" /> | ||
<TreeItem itemId="6" label="MUI"> | ||
<TreeItem itemId="8" label="index.js" /> | ||
<Box sx={{ minHeight: 352, minWidth: 250 }}> | ||
<SimpleTreeView> | ||
<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> | ||
</SimpleTreeView> | ||
<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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +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 FirstComponent() { | ||
return ( | ||
<SimpleTreeView | ||
aria-label="file system navigator" | ||
sx={{ height: 200, flexGrow: 1, maxWidth: 400, overflowY: 'auto' }} | ||
> | ||
<TreeItem itemId="1" label="Applications"> | ||
<TreeItem itemId="2" label="Calendar" /> | ||
</TreeItem> | ||
<TreeItem itemId="5" label="Documents"> | ||
<TreeItem itemId="10" label="OSS" /> | ||
<TreeItem itemId="6" label="MUI"> | ||
<TreeItem itemId="8" label="index.js" /> | ||
<Box sx={{ minHeight: 352, minWidth: 250 }}> | ||
<SimpleTreeView> | ||
<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> | ||
</SimpleTreeView> | ||
<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> | ||
); | ||
} |
14 changes: 0 additions & 14 deletions
14
docs/data/tree-view/getting-started/FirstComponent.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
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
11 changes: 0 additions & 11 deletions
11
docs/data/tree-view/overview/BasicSimpleTreeView.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
6 changes: 2 additions & 4 deletions
6
docs/data/tree-view/rich-tree-view/customization/CustomAnimation.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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
<RichTreeView | ||
aria-label="customized" | ||
defaultExpandedItems={['1']} | ||
sx={{ overflowX: 'hidden', minHeight: 270, flexGrow: 1, maxWidth: 300 }} | ||
defaultExpandedItems={['grid']} | ||
slotProps={{ item: { slots: { groupTransition: TransitionComponent } } }} | ||
items={ITEMS} | ||
items={MUI_X_PRODUCTS} | ||
/> |
Oops, something went wrong.