Percentage Field

Schema definition:

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

defineField({
    id: 'growth'
    type: 'percentage',
    precision: 1,
    allowNegativeNumbers: false
})

Format as text

{
    "text": "20.1%"
}

Change Details

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

TODO: demo percentage field prev next