You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -655,6 +686,55 @@ To enable pagination on the table, use the `bl-pagination` component. The `@bl-c
655
686
</Story>
656
687
</Canvas>
657
688
689
+
# No Data Slot
690
+
691
+
When there are no rows in the table, you can display custom content using the "no-data" slot. This slot appears automatically when no `bl-table-row` elements are present in the table body. If no custom slot is provided, a default no-data message will be displayed.
<p style="margin: var(--bl-size-xs) 0 0 0; font: var(--bl-font-body-text-2); color: var(--bl-color-neutral-light);">This is a custom no-data slot implementation.</p>
711
+
<bl-button style="margin-top: var(--bl-size-l);">
712
+
Add New Item
713
+
</bl-button>
714
+
</div>
715
+
</div>
716
+
`:''}
717
+
</bl-table-body>
718
+
</bl-table>
719
+
</div>
720
+
`;
721
+
722
+
<Canvas>
723
+
<Storyname="Table with No Data Slot"args={{ showNoDataSlot: true }}>
724
+
{EmptyTableTemplate.bind({})}
725
+
</Story>
726
+
</Canvas>
727
+
728
+
## Empty Table Without No Data Slot
729
+
730
+
If no "no-data" slot is provided, the table displays a default no-data message with a standard design.
731
+
732
+
<Canvas>
733
+
<Storyname="Empty Table Without Slot"args={{ showNoDataSlot: false }}>
734
+
{EmptyTableTemplate.bind({})}
735
+
</Story>
736
+
</Canvas>
737
+
658
738
# RTL Support
659
739
660
740
The table component supports RTL (Right-to-Left) text direction. You can enable RTL mode by setting the `dir` attribute on a parent element or the `html` tag.
0 commit comments