docs(floating-actions): add row-selection pattern with DataTable#747
docs(floating-actions): add row-selection pattern with DataTable#747paanSinghCoder wants to merge 1 commit intofeat/floating-actionsfrom
Conversation
Adds a new "Row selection" section in the DataTable docs showing the recommended pattern for integrating FloatingActions with TanStack row selection: - leading checkbox column wired via row.toggleSelected / getIsSelected - SelectionBar that reads useDataTable().table.getSelectedRowModel() - FloatingActions overlay with dismissible count chip (onDismiss → table.resetRowSelection) Ships a live demo (DataTableSelectionDemo) registered in the Demo scope, plus a cross-reference from the FloatingActions docs. Also adds matching horizontal padding on DataTable's toolbar so filter / display controls align with cell content. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
FloatingActionswith TanStack row selection (leading checkbox column +useDataTable()+ dismissible count chip wired totable.resetRowSelection()).DataTableSelectionDemoregistered in the Demo scope so the pattern is visible in the docs, not just copy-pasted code.FloatingActionsdocs pointing at the new section..toolbarso filter/display controls align with cell content.Test plan
/components/datatable→ scroll to "Row selection" — live demo renders, clicking checkboxes updates the "N selected" chip; dismissing clears selection./components/floating-actions→ see cross-reference at "Use with DataTable".🤖 Generated with Claude Code