While this works, it saves the entire datetime picker JSON when hitting save and publish, which is expected since the open property lives on model.value
What I'd like is to save the selected time from the datetime picker, instead of saving the datetime picker JSON.
Is this possible in some way? :-) I guess I'd have to make a change() method for when the datetime picker changes value and then update the model.value accordingly, but I'm not sure on how to make the change() method and how to make the datetime picker bind to an existing value when the view loads.
Reuse Umbraco datetime picker in custom property editor
Hi all,
I'm creating a custom property editor which is using the built-in date (time) picker property editor.
In my view, I'm using it like this:
And in my controller:
While this works, it saves the entire datetime picker JSON when hitting save and publish, which is expected since the
open
property lives onmodel.value
What I'd like is to save the selected time from the datetime picker, instead of saving the datetime picker JSON.
Is this possible in some way? :-) I guess I'd have to make a
change()
method for when the datetime picker changes value and then update themodel.value
accordingly, but I'm not sure on how to make thechange()
method and how to make the datetime picker bind to an existing value when the view loads.Thanks in advance.
is working on a reply...