Currency Field

Schema definition:

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

defineField({
    id: 'totalPrice'
    type: 'currency',
    precision: 2,
    allowNegativeNumbers: true
})

Format as text

{
    "text": "$ 20.99"
}

Change Details

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

TODO: demo currency field prev next