chec / ui-library

Chec UI library assets and components
https://chec-ui.netlify.app/
BSD 3-Clause "New" or "Revised" License
21 stars 6 forks source link

Add a loading state to the `ChecTable` component #485

Open ScopeyNZ opened 3 years ago

ScopeyNZ commented 3 years ago

It's becoming pretty common-place for us to add a row with a loading indicator to a table, and define some stying for it. We should add this to the ChecTable component so we DRY it up:

https://github.com/chec/dashboard/blob/07b1ae185b3219b2c1ca8a90cca8e15e0af4849b/src/modules/settings/components/shipping/ZoneTable.vue#L145-L152

The only weird thing about this is that we'll need to tell the component how many columns are in the table.

robbieaverill commented 3 years ago

If only HTML supported something like colspan="*"