Table Wrapper
<wa-table-wrapper>
Table Wrapper can be used to extend a simple Table with interactive functions
| First Column | Second Column | Thrid Column |
|---|---|---|
| Hello 200 | Alpha | 3 |
| Hello 20 | Gamma | 40 |
| Hello 1 | Delta | 15 |
| Hello | Zeta | 4 |
<wa-table-wrapper searchable sortable> <table> <thead> <tr> <th>First Column</th> <th>Second Column</th> <th>Thrid Column</th> </tr> </thead> <tbody> <tr> <td>Hello 200</td> <td>Alpha</td> <td>3</td> </tr> <tr> <td>Hello 20</td> <td>Gamma</td> <td>40</td> </tr> <tr> <td>Hello 1</td> <td>Delta</td> <td>15</td> </tr> <tr> <td>Hello</td> <td>Zeta</td> <td>4</td> </tr> </tbody> </table> </wa-table-wrapper>
Slots Jump to heading
Learn more about using slots.
| Name | Description |
|---|---|
| (default) | The default slot. - Place here the table |
Attributes & Properties Jump to heading
Learn more about attributes and properties.
| Name | Description | Reflects | |
|---|---|---|---|
searchablesearchable |
Wenn set searchField is shown
Type
booleanDefault
false |
|
|
sortablesortable |
Wenn set table header is sortable
Type
booleanDefault
false |
|
CSS parts Jump to heading
Learn more about CSS parts.
| Name | Description |
|---|---|
search |
The component's searcg input. |
Dependencies Jump to heading
This component automatically imports the following elements. Sub-dependencies, if any exist, will also be included in this list.
Importing Jump to heading
Autoloading components via projects is the recommended way to import components. If you prefer to do it manually, use one of the following code snippets.
Let your project code do the work! Sign up for free to use a project with your very own CDN — it's the fastest and easiest way to use Web Awesome.
To manually import this component from NPM, use the following code.
import '@awesome.me/webawesome/dist/components/table-wrapper/table-wrapper.js';
To manually import this component from React, use the following code.
import WaTableWrapper from '@awesome.me/webawesome/dist/react/table-wrapper';