fix semantic errors

This commit is contained in:
Chris Kruining 2025-01-07 16:07:58 +01:00
parent 2e34f5d3ea
commit e8545fe093
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2

View file

@ -74,8 +74,8 @@ export default function GridExperiment() {
<fieldset> <fieldset>
<legend>Commands</legend> <legend>Commands</legend>
<button onclick={() => api()?.insert({ id: crypto.randomUUID(), name: '', address: '', country: '', currency: '', email: '', phone: '' })}>add row</button> <button name="insert row" onclick={() => api()?.insert({ id: crypto.randomUUID(), name: '', address: '', country: '', currency: '', email: '', phone: '' })}>add row</button>
<button onclick={() => api()?.remove(api()?.selection()?.map(i => i.key as any) ?? [])} disabled={api()?.selection().length === 0}>Remove {api()?.selection().length} items</button> <button name="delete selected items" onclick={() => api()?.remove(api()?.selection()?.map(i => i.key as any) ?? [])} disabled={api()?.selection().length === 0}>Remove {api()?.selection().length} items</button>
</fieldset> </fieldset>
<fieldset> <fieldset>