Table
<zn-table> | ZnTable
Short summary of the component’s intended use.
<zn-table fixed-first="" t="light" has-actions="" data="{"header":["Full Name","User ID","Email","Type","Partner","State","Date Joined"],"items": [{"actions": [{"confirm": {"type": "success","trigger": "reactivate10","caption": "Reactivate Access","content": "Are you sure you want to reactivate access for John Doe?","action": "#"},"title": "Reactivate Access","style": "success"}],"caption": "John Doe","data": ["1","john.doe@example.com","Member","","<span class='zn-success'>Active</span>","2025-01-01 12:10:20"]}]}"></zn-table>
Examples
First Example
TODO
Second Example
TODO
Importing
If you’re using the autoloader or the traditional loader, you can ignore this section. Otherwise, feel free to use any of the following snippets to cherry pick this component.
To import this component from the CDN using a script tag:
<script type="module" src="https://cdn.jsdelivr.net/npm/@kubex/zinc@1.0.23/dist/components/table/table.js"></script>
To import this component from the CDN using a JavaScript import:
import 'https://cdn.jsdelivr.net/npm/@kubex/zinc@1.0.23/dist/components/table/table.js';
To import this component using a bundler:
import '@kubex/zinc/dist/components/table/table.js';
Slots
| Name | Description |
|---|---|
| (default) | The default slot. |
example
|
An example slot. |
Learn more about using slots.
Events
| Name | React Event | Description | Event Detail |
|---|---|---|---|
zn-event-name |
|
Emitted as an example. | - |
Learn more about events.
Custom Properties
| Name | Description | Default |
|---|---|---|
--example |
An example CSS custom property. |
Learn more about customizing CSS custom properties.
Parts
| Name | Description |
|---|---|
base |
The component’s base wrapper. |
Learn more about customizing CSS parts.
Dependencies
This component automatically imports the following dependencies.
<zn-example>