+ Showing all selected lines from table may degrade page performance. +
+ + +- This page shows you the analytics for your project, - {{ project.title }}. You can see the number of downloads, page views and revenue earned for your project, as - well as the total downloads and page views for {{ project.title }} by country. -
-- This page shows you the analytics for your organization's projects. You can see the number - of downloads, page views and revenue earned for all of your projects, as well as the total - downloads and page views for each project by country. -
-|
- |
-
+
+ |
+
+ |
+ |
|---|
Selected value: {{ value || 'None' }}
+Click a checkbox, then Shift-click another checkbox to select or clear the range.
+Selected IDs: {{ selectedIds.join(', ') || 'None' }}
+ + `, + }), +} + +export const WithSelectionData: StoryObj = { + args: {}, + render: () => ({ + components: { Table }, + setup() { + const columns = [ + { key: 'name', label: 'Name' }, + { key: 'email', label: 'Email' }, + { key: 'status', label: 'Status' }, + { key: 'role', label: 'Role' }, + ] + const selectionData = rangeSelectionUsers + const data = selectionData.filter((_, index) => index === 1 || index === 5) + const selectedIds = refOnly rows 2 and 6 are visible; Shift-clicking between them selects IDs 2 through 6 from selectionData.
+Selected IDs: {{ selectedIds.join(', ') || 'None' }}
+Only rows 2 and 6 are visible; Shift-clicking between them selects IDs 2 through 6 from selectionIds.
Selected IDs: {{ selectedIds.join(', ') || 'None' }}