Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] Add <TreeInput> and <ReferenceNodeInput> chapters #8974

Merged
merged 3 commits into from
Jun 5, 2023
Merged

Conversation

fzaninotto
Copy link
Member

@fzaninotto fzaninotto commented Jun 5, 2023

Capture d’écran 2023-06-05 à 14 03 35

import { Edit, SimpleForm, TextInput } from 'react-admin';
import { TreeInput } from '@react-admin/ra-tree';

export const ProductEdit = () => (
    <Edit>
        <SimpleForm>
            <TextInput source="id" disabled />
            <TextInput source="name" />
            <TreeInput source="category" treeData={[
                { id: 1, title: 'Clothing', isRoot: true, children: [2, 6] },
                { id: 2, title: 'Men', children: [3] },
                { id: 3, title: 'Suits', children: [4, 5] },
                { id: 4, title: 'Slacks', children: [] },
                { id: 5, title: 'Jackets', children: [] },
                { id: 6, title: 'Women', children: [7, 10, 11] },
                { id: 7, title: 'Dresses', children: [8, 9] },
                { id: 8, title: 'Evening Gowns', children: [] },
                { id: 9, title: 'Sun Dresses', children: [] },
                { id: 10, title: 'Skirts', children: [] },
                { id: 11, title: 'Blouses', children: [] },
            ]} />
        </SimpleForm>
    </Edit>
);
  • Add TreeInput Chapter
  • Add ReferenceNodeInput Chapter
  • Mention new components in Reference and sidebar navigation
  • Mention new components in related chapters

docs/ReferenceInput.md Outdated Show resolved Hide resolved
docs/TreeInput.md Outdated Show resolved Hide resolved
fzaninotto and others added 2 commits June 5, 2023 14:46
Co-authored-by: Jean-Baptiste Kaiser <jb@marmelab.com>
@slax57 slax57 added this to the 4.11.2 milestone Jun 5, 2023
@slax57 slax57 merged commit 5b387fd into master Jun 5, 2023
3 checks passed
@slax57 slax57 deleted the doc-treeinput branch June 5, 2023 13:41
@fzaninotto fzaninotto changed the title [Doc] Add documentation for <TreeInput> and <ReferenceNodeInput> [Doc] Add <TreeInput> and <ReferenceNodeInput> chapters Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants