martin-shn
(Martin Shn.)
1
when i set this in the uischema:
{
type: ‘Control’,
scope: ‘#/properties/Birthday’,
options: {
format: “date”,
clearLabel: “Clear it!”,
cancelLabel: “Abort”,
okLabel: “Do it”,
views: [
“month”,
“date”,
],
dateFormat: “DD-MM”,
dateSaveFormat: “DD-MM”
}
},
I get an error and a crash.
very important to notice - the order of the views array. month first, then date.
thanks
sdirix
(Stefan Dirix)
2
Hi @martin-shn,
Thanks for the notice. The documentation has a mistake, the allowed options for views
are year
, month
and day
(not date
).
Edit: I adapted the documentation.
martin-shn
(Martin Shn.)
3
when i tried with day instead of date it didn’t work. but ill try again. thanks