Single Select Field

Schema definition:

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

defineField({
    id: 'ignoranceEnabled',
    name: 'Matrix Choice',
    type: 'singleSelect',
    options: [
        {
            id: 'bluePill',
            name: 'Blue Pill'
        },
        {
            id: 'redPill',
            name: 'Red Pill'
        },
    ],
})

Format as text

{
    "text": "Red Pill"
}

Change Details

{
    "prev" : "Blue Pill",
    "next" : "Red Pill",
    "userId" : "root",
    "supervisorId" : null,
    "operation" : "change",
    "source" : "user",
    "type" : "text",
    "time" : "2023-12-26T09:29:50.411Z"
}

TODO: demo single select field prev next