Checkbox Field

Schema definition:

import defineField from '@/lib/field/defineField'

defineField({
    id: 'isPublishable'
    type: 'checkbox',
    defaultValue: false
})

Format as text

{
    "text": "Yes"
}

Change Details

{
    "prev" : false,
    "next" : true,
    "userId" : "root",
    "supervisorId" : null,
    "operation" : "add",
    "source" : "user",
    "type" : "checkbox",
    "time" : "2023-12-26T09:29:50.411Z"
}

TODO: demo checkbox field prev next