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

Add ability to pass a tab count in <TabbedForm.Tab> and <TabbedShowLayout.Tab> #8543

Merged
merged 2 commits into from
Jan 5, 2023

Conversation

fzaninotto
Copy link
Member

@fzaninotto fzaninotto commented Jan 3, 2023

const PostEdit = () => (
    <Edit>
        <TabbedForm>
            <TabbedForm.Tab label="post.form.summary">
                {/*...*/}
            </TabbedForm.Tab>
            <TabbedForm.Tab label="post.form.body">
                {/*...*/}
            </TabbedForm.Tab>
            <TabbedForm.Tab label="post.form.miscellaneous">
                {/*...*/}
            </TabbedForm.Tab>
            <TabbedForm.Tab
                label="post.form.comments"
                count={<ReferenceManyCount reference="comments" target="post_id" />}
            >
                {/*...*/}
            </TabbedForm.Tab>
        </TabbedForm>
    </Edit>
);

tab_count

examples/demo/src/orders/OrderList.tsx Show resolved Hide resolved
examples/demo/src/orders/OrderList.tsx Outdated Show resolved Hide resolved
packages/ra-ui-materialui/src/detail/Tab.tsx Outdated Show resolved Hide resolved
@slax57 slax57 added this to the 4.7.0 milestone Jan 5, 2023
@slax57 slax57 merged commit e60a58e into next Jan 5, 2023
@slax57 slax57 deleted the tab-count branch January 5, 2023 08:42
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