Supplier catalog
Click a cell, or tab to it and press Enter, to open the right editor for that column. Enter keeps the change, Escape drops it, and edited lines wait for you to save them.
| Change status |
|---|
No unsaved changes
Undo also works with Ctrl+Z while you're in the table.
Show code
<td><button class="edit-cell" data-field="cost">$412</button></td>
// Each column names its editor; validation runs before the value is kept.
{ field: 'sku', editor: 'text', pattern: /^[A-Z]{3}-\d{4}$/ },
{ field: 'cost', editor: 'money', min: 1 }, // a $ field, not a spinner
{ field: 'category', editor: 'select', options: categories }