1
0
Fork 0
mirror of synced 2024-07-03 05:20:32 +12:00

bind checked

This commit is contained in:
Martin McKeaveney 2020-09-10 13:10:57 +01:00
parent 2abd6ed7b2
commit c4eda0f1e7

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'}