How to dynamic add property "timepicker": true or false

Hello how to dynamic add property “timepicker”: true or false to “datepicker” editor ?

I want use code to control edit time visible or not

$$(“dt_time”).define(“timepicker”, true)
$$(“dt_time”).refresh()

I think it will be like this but its not work!

Hello @duynq2197,

The only possible way is to set the new config for the calendar within the popup:

Please, check out the snippet: Code Snippet

1 Like

Thank you. This is the last piece what i missing <3

1 Like