Skip to content

Add children support to ReferenceManyCount#11266

Open
Will-thom wants to merge 1 commit into
marmelab:nextfrom
Will-thom:feat/reference-many-count-children
Open

Add children support to ReferenceManyCount#11266
Will-thom wants to merge 1 commit into
marmelab:nextfrom
Will-thom:feat/reference-many-count-children

Conversation

@Will-thom
Copy link
Copy Markdown

Summary

  • Allow ReferenceManyCountBase to render custom children using a record context containing total
  • Forward ReferenceManyCount children so fields like NumberField source=total can format large counts
  • Add stories, tests, and documentation for the new customization path

Fixes #11242

Tests

  • node .yarn\releases\yarn-4.0.2.cjs test-unit packages/ra-core/src/controller/field/ReferenceManyCountBase.spec.tsx packages/ra-ui-materialui/src/field/ReferenceManyCount.spec.tsx
  • node .yarn\releases\yarn-4.0.2.cjs exec eslint packages/ra-core/src/controller/field/ReferenceManyCountBase.tsx packages/ra-core/src/controller/field/ReferenceManyCountBase.stories.tsx packages/ra-core/src/controller/field/ReferenceManyCountBase.spec.tsx packages/ra-ui-materialui/src/field/ReferenceManyCount.tsx packages/ra-ui-materialui/src/field/ReferenceManyCount.stories.tsx packages/ra-ui-materialui/src/field/ReferenceManyCount.spec.tsx
  • node .yarn\releases\yarn-4.0.2.cjs workspace ra-core build
  • node .yarn\releases\yarn-4.0.2.cjs workspace ra-ui-materialui build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant