discobot
(discobot)
1
Help us in how to use custom date render instead of normal date format given below example.
Example:
{
“type”: “object”,
“properties”: {
“comments”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“date”: {
“type”: “string”,
“format”: “date”
},
“message”: {
“type”: “string”,
“maxLength”: 5
},
“enum”: {
“type”: “string”,
“const”: “foo”
}
}
}
}
}
}
[original thread by praveenramineni]
sdirix
(Stefan Dirix)
2
Hi! You can fully customize any control by using a custom renderer, see also our tutorial.
discobot
(discobot)
3
[praveenramineni]
Hi Stefan, Thank you. I have created custom render but need to configure in schema instead of format date.
sdirix
(Stefan Dirix)
4
You can configure in your schema whatever you’d like as your custom renderer can then read it in and render what you want.