TwitterGithub

Table

A responsive table component.

A list of your recent invoices.InvoiceStatusMethodAmountINV001PaidCredit Card$250.00INV002PendingPayPal$150.00INV003UnpaidBank Transfer$350.00INV004PaidCredit Card$450.00INV005PaidPayPal$550.00INV006PendingBank Transfer$200.00INV007UnpaidCredit Card$300.00Total$2,500.00

Installation

npx nx g @spartan-ng/cli:ui table

Usage

import {
  HlmCaptionComponent,
  HlmTableComponent,
  HlmTdComponent,
  HlmThComponent,
  HlmTrowComponent,
} from '@spartan-ng/ui-table-helm';
<hlm-table>
  <hlm-caption>A list of your recent invoices.</hlm-caption>
  <hlm-trow>
    <hlm-th>Invoice</hlm-th>
    <hlm-th>Status</hlm-th>
    <hlm-th>Method</hlm-th>
    <hlm-th>Amount</hlm-th>
  </hlm-trow>
  <hlm-trow>
    <hlm-th>INV001</hlm-th>
    <hlm-th>Paid</hlm-th>
    <hlm-th>Credit Card</hlm-th>
    <hlm-th>$250.00</hlm-th>
  </hlm-trow>
</hlm-table>

Data Table

You can use the brn-table component to build more complex data tables.

See the Data Table documentation for more information.

We are also working on an example using the data table...

Tabs Switch