PyBlade/ui
Menu⌄
DocsComponentsTable

Table

A responsive table and its parts.

7 files

Installation

pyblade-ui add table

Usage

The tags <pb-ui.table> <pb-ui.table-header> <pb-ui.table-body> <pb-ui.table-row> <pb-ui.table-head> <pb-ui.table-cell> <pb-ui.table-caption> are available in all your templates.

<pb-ui.table>
  <pb-ui.table-header><pb-ui.table-row><pb-ui.table-head>Name</pb-ui.table-head></pb-ui.table-row></pb-ui.table-header>
  <pb-ui.table-body>
    @for(user in users)
    <pb-ui.table-row><pb-ui.table-cell>{{ user.name }}</pb-ui.table-cell></pb-ui.table-row>
    @endfor
  </pb-ui.table-body>
</pb-ui.table>