1
0
Fork 0
mirror of synced 2024-07-04 05:50:57 +12:00

bind checked

This commit is contained in:
Martin McKeaveney 2020-09-10 13:10:57 +01:00
parent 478761175c
commit 0e20a73851

View file

@ -127,7 +127,7 @@
{:else if schema[field].type === 'datetime'}
<DatePicker bind:value={record[field]} />
{:else if schema[field].type === 'boolean'}
<input class="input" type="checkbox" bind:value={record[field]} />
<input class="input" type="checkbox" bind:checked={record[field]} />
{:else if schema[field].type === 'number'}
<input class="input" type="number" bind:value={record[field]} />
{:else if schema[field].type === 'string'}