Skip to content

Commit 9c8a01e

Browse files
authored
Merge pull request #10929 from marmelab/update-TreeInput-assets
[Doc] Update `<TreeInput>` assets and doc
2 parents 2db9a71 + 53d095a commit 9c8a01e

12 files changed

+12
-15
lines changed

docs/ReferenceInput.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,7 @@ You can learn more about the `create` prop in the documentation of the selection
428428
If the reference resource is a tree, use [`<ReferenceNodeInput>`](./ReferenceNodeInput.md) instead of `<ReferenceInput>`.
429429

430430
<video controls autoplay playsinline muted loop>
431-
<source src="./img/ReferenceNodeInput-TreeInput-basic.webm" type="video/webm"/>
432-
<source src="./img/ReferenceNodeInput-TreeInput-basic.mp4" type="video/mp4"/>
431+
<source src="https://react-admin-ee.marmelab.com/assets/ReferenceNodeInput-TreeInput-basic.mp4" type="video/mp4"/>
433432
Your browser does not support the video tag.
434433
</video>
435434

docs/ReferenceNodeInput.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ title: "The ReferenceNodeInput Component"
88
This [Enterprise Edition](https://react-admin-ee.marmelab.com)<img class="icon" src="./img/premium.svg" alt="React Admin Enterprise Edition icon" /> component allows users to select one or several nodes from a tree of a reference resource. For instance, this is useful to select a category for a product.
99

1010
<video controls autoplay playsinline muted loop>
11-
<source src="./img/ReferenceNodeInput-TreeInput-basic.webm" type="video/webm"/>
12-
<source src="./img/ReferenceNodeInput-TreeInput-basic.mp4" type="video/mp4"/>
11+
<source src="https://react-admin-ee.marmelab.com/assets/ReferenceNodeInput-TreeInput-basic.mp4" type="video/mp4"/>
1312
Your browser does not support the video tag.
1413
</video>
1514

@@ -58,8 +57,7 @@ const ProductEdit = () => (
5857
```
5958

6059
<video controls autoplay playsinline muted loop>
61-
<source src="./img/ReferenceNodeInput-TreeInput-multiple.webm" type="video/webm"/>
62-
<source src="./img/ReferenceNodeInput-TreeInput-multiple.mp4" type="video/mp4"/>
60+
<source src="https://react-admin-ee.marmelab.com/assets/ReferenceNodeInput-TreeInput-multiple.mp4" type="video/mp4"/>
6361
Your browser does not support the video tag.
6462
</video>
6563

docs/SelectInput.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,8 +751,7 @@ const CreateCategory = () => {
751751
If the choices form a hierarchy or a tree, use the [`<TreeInput>`](./TreeInput.md) component instead of `<SelectInput>`. It renders a collapsible tree structure, and lets users select a value by clicking on a node.
752752

753753
<video controls autoplay playsinline muted loop>
754-
<source src="./img/ReferenceNodeInput-TreeInput-basic.webm" type="video/webm"/>
755-
<source src="./img/ReferenceNodeInput-TreeInput-basic.mp4" type="video/mp4"/>
754+
<source src="https://react-admin-ee.marmelab.com/assets/ReferenceNodeInput-TreeInput-basic.mp4" type="video/mp4"/>
756755
Your browser does not support the video tag.
757756
</video>
758757

docs/TreeInput.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ title: "The TreeInput Component"
88
This [Enterprise Edition](https://react-admin-ee.marmelab.com)<img class="icon" src="./img/premium.svg" alt="React Admin Enterprise Edition icon" /> component allows to select one or several nodes from a tree.
99

1010
<video controls autoplay playsinline muted loop>
11-
<source src="./img/ReferenceNodeInput-TreeInput-basic.webm" type="video/webm"/>
12-
<source src="./img/ReferenceNodeInput-TreeInput-basic.mp4" type="video/mp4"/>
11+
<source src="https://react-admin-ee.marmelab.com/assets/ReferenceNodeInput-TreeInput-basic.mp4" type="video/mp4"/>
1312
Your browser does not support the video tag.
1413
</video>
1514

@@ -51,9 +50,13 @@ export const SimpleTreeForm = () => (
5150
| `source` | Required | string | - | The name of the source field. Required unless when used inside `<ReferenceNodeInput>` |
5251
| `checkStrictly` | Optional | boolena | `true` | Check node precisely, parent and children nodes are not associated |
5352
| `data` | Optional | array of objects | - | The tree data |
53+
| `id` | Optional | string | - | The input id |
5454
| `hideRootNodes` | Optional | boolean | `false` | Set to true to hide all root nodes |
55+
| `margin` | Optional | string | `dense` | The margin of the input, can be `none`, `dense` or `normal` (see MUI Input margins) |
5556
| `multiple` | Optional | boolean | `false` | Set to true to allow selecting multiple nodes |
57+
| `size` | Optional | string | `small` | The size of the input, can be `small`, `medium` or `large` (see MUI Input sizes) |
5658
| `titleField` | Optional | string | `'title'` | The name of the field holding the node title |
59+
| `variant` | Optional | string | `filled` | The variant to use, e.g. `standard`, `outlined` or `filled` (see MUI Input variants) |
5760

5861
`<TreeInput>` also accepts the [common input props](./Inputs.md#common-input-props) and the [rc-tree](https://tree-react-component.vercel.app/) props.
5962

@@ -110,8 +113,7 @@ Use the `hideRootNodes` prop to hide all root nodes:
110113
Use the `multiple` prop to allow selecting multiple nodes. In that case, `<TreeInput>` renders a tree with one checkbox per line.
111114

112115
<video controls autoplay playsinline muted loop>
113-
<source src="./img/ReferenceNodeInput-TreeInput-multiple.webm" type="video/webm"/>
114-
<source src="./img/ReferenceNodeInput-TreeInput-multiple.mp4" type="video/mp4"/>
116+
<source src="https://react-admin-ee.marmelab.com/assets/ReferenceNodeInput-TreeInput-multiple.mp4" type="video/mp4"/>
115117
Your browser does not support the video tag.
116118
</video>
117119

docs/TreeWithDetails.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,7 @@ export const ProductEdit = () => (
484484
```
485485

486486
<video controls autoplay playsinline muted loop>
487-
<source src="./img/ReferenceNodeInput-TreeInput-basic.webm" type="video/webm"/>
488-
<source src="./img/ReferenceNodeInput-TreeInput-basic.mp4" type="video/mp4"/>
487+
<source src="https://react-admin-ee.marmelab.com/assets/ReferenceNodeInput-TreeInput-basic.mp4" type="video/mp4"/>
489488
Your browser does not support the video tag.
490489
</video>
491490

docs/assets/features.md_ignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ The `<PrevNextButtons>` component renders navigation buttons linking to the next
327327
The `<TreeInput>` component allows to select one or several nodes from a tree. #input #tree https://marmelab.com/react-admin/TreeInput.html
328328

329329
<video controls autoplay playsinline muted loop>
330-
<source src="https://marmelab.com/react-admin/img/ReferenceNodeInput-TreeInput-basic.webm" type="video/webm"/>
330+
<source src="https://react-admin-ee.marmelab.com/assets/ReferenceNodeInput-TreeInput-basic.mp4" type="video/mp4"/>
331331
Your browser does not support the video tag.
332332
</video>
333333

-68.8 KB
Binary file not shown.
-133 KB
Binary file not shown.
-72.1 KB
Binary file not shown.
-114 KB
Binary file not shown.

0 commit comments

Comments
 (0)