mirror of
https://github.com/hunvreus/basecoat.git
synced 2026-11-11 20:58:18 +00:00
4.1 KiB
4.1 KiB
templateEngineOverride, layout, title, description, toc
| templateEngineOverride | layout | title | description | toc | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| njk | layouts/page.njk | Table | A responsive table component. |
|
{% from "macros/code_preview.njk" import code_preview %} {% from "macros/code_block.njk" import code_block %}
{% set code %}
| Invoice | Status | Method | Amount |
|---|---|---|---|
| INV001 | Paid | Credit Card | $250.00 |
| INV002 | Pending | PayPal | $150.00 |
| INV003 | Unpaid | Bank Transfer | $350.00 |
| INV004 | Paid | Paypal | $450.00 |
| INV005 | Paid | Credit Card | $550.00 |
| INV006 | Pending | Bank Transfer | $200.00 |
| INV007 | Unpaid | Credit Card | $300.00 |
| Total | $2,500.00 | ||
Usage
Add the table class to your table element. Wrap it in table-container when horizontal scrolling is needed.
{% set code %}
Examples
Footer
{% set code_footer %}
| Invoice | Amount |
|---|---|
| INV001 | $250.00 |
| Total | $250.00 |
Actions
{% set code_actions %}
| Name | Actions |
|---|---|
| Project Alpha | Open |
RTL
Tables support right-to-left layouts through native table direction and logical alignment utilities such as text-end.
{% set code_rtl %}
| الفاتورة | الحالة | المبلغ |
|---|---|---|
| INV001 | مدفوعة | $250.00 |