Skip to main content
Light Dark System

Order Table

<zn-order-table> | ZnOrderTable
Since 1.0 experimental

Short summary of the component’s intended use.

<zn-order-table data="{
  &quot;headers&quot;: [&quot;Product&quot;, &quot;SKU&quot;, &quot;Quantity&quot;, &quot;Unit Price&quot;, &quot;Subtotal&quot;, &quot;Total&quot;],
  &quot;items&quot;: [
    {
      &quot;caption&quot;: &quot;Electronics&quot;,
      &quot;summary&quot;: &quot;Devices and accessories&quot;,
      &quot;data&quot;: [],
      &quot;sub&quot;: [
        {
          &quot;caption&quot;: &quot;Wireless Headphones&quot;,
          &quot;summary&quot;: &quot;Noise-cancelling over-ear model&quot;,
          &quot;data&quot;: [&quot;ELC-1021&quot;, &quot;Wireless Headphones&quot;, &quot;1&quot;, &quot;£120.00&quot;, &quot;£120.00&quot;]
        },
        {
          &quot;caption&quot;: &quot;USB-C Charger&quot;,
          &quot;summary&quot;: &quot;Fast-charging 65W adapter&quot;,
          &quot;data&quot;: [&quot;ELC-3054&quot;, &quot;USB-C Charger&quot;, &quot;2&quot;, &quot;£25.00&quot;, &quot;£50.00&quot;]
        },
        {
          &quot;caption&quot;: &quot;Bluetooth Speaker&quot;,
          &quot;summary&quot;: &quot;Portable waterproof mini speaker&quot;,
          &quot;data&quot;: [&quot;ELC-4092&quot;, &quot;Bluetooth Speaker&quot;, &quot;1&quot;, &quot;£55.00&quot;, &quot;£55.00&quot;]
        }
      ]
    },
    {
      &quot;caption&quot;: &quot;Home &amp; Kitchen&quot;,
      &quot;summary&quot;: &quot;Appliances and essentials&quot;,
      &quot;data&quot;: [],
      &quot;sub&quot;: [
        {
          &quot;caption&quot;: &quot;Electric Kettle&quot;,
          &quot;summary&quot;: &quot;1.7L stainless steel kettle&quot;,
          &quot;data&quot;: [&quot;HMK-2210&quot;, &quot;Electric Kettle&quot;, &quot;1&quot;, &quot;£35.00&quot;, &quot;£35.00&quot;]
        },
        {
          &quot;caption&quot;: &quot;Coffee Grinder&quot;,
          &quot;summary&quot;: &quot;Adjustable ceramic burr grinder&quot;,
          &quot;data&quot;: [&quot;HMK-2278&quot;, &quot;Coffee Grinder&quot;, &quot;1&quot;, &quot;£40.00&quot;, &quot;£40.00&quot;]
        },
        {
          &quot;caption&quot;: &quot;Kitchen Scale&quot;,
          &quot;summary&quot;: &quot;Digital scale, 5kg capacity&quot;,
          &quot;data&quot;: [&quot;HMK-2321&quot;, &quot;Kitchen Scale&quot;, &quot;1&quot;, &quot;£22.00&quot;, &quot;£22.00&quot;]
        }
      ]
    },
    {
      &quot;caption&quot;: &quot;Office Supplies&quot;,
      &quot;summary&quot;: &quot;Daily work essentials&quot;,
      &quot;data&quot;: [],
      &quot;sub&quot;: [
        {
          &quot;caption&quot;: &quot;A4 Notebook&quot;,
          &quot;summary&quot;: &quot;200 pages, ruled&quot;,
          &quot;data&quot;: [&quot;OFC-1003&quot;, &quot;A4 Notebook&quot;, &quot;3&quot;, &quot;£4.00&quot;, &quot;£12.00&quot;]
        },
        {
          &quot;caption&quot;: &quot;Ballpoint Pen Set&quot;,
          &quot;summary&quot;: &quot;Pack of 10 blue pens&quot;,
          &quot;data&quot;: [&quot;OFC-1045&quot;, &quot;Ballpoint Pen Set&quot;, &quot;1&quot;, &quot;£6.00&quot;, &quot;£6.00&quot;]
        },
        {
          &quot;caption&quot;: &quot;Desk Organizer&quot;,
          &quot;summary&quot;: &quot;Metal mesh, 5 compartments&quot;,
          &quot;data&quot;: [&quot;OFC-1089&quot;, &quot;Desk Organizer&quot;, &quot;1&quot;, &quot;£18.00&quot;, &quot;£18.00&quot;]
        }
      ]
    }
  ],
  &quot;tax&quot;: &quot;£34.80&quot;,
  &quot;discount&quot;: &quot;£15.00&quot;,
  &quot;total&quot;: &quot;£368.80&quot;,
  &quot;paid&quot;: &quot;£250.00&quot;,
  &quot;remaining&quot;: &quot;£118.80&quot;
}
"></zn-order-table>

Examples

FirstExample

TODO

SecondExample

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/order-table/order-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/order-table/order-table.js';

To import this component using a bundler:

import '@kubex/zinc/dist/components/order-table/order-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>