Are there any examples on how to use DatePickers f...
# javascript
e
Are there any examples on how to use DatePickers from kotlin material ui wrapper? I'm not sure how can I pass any additional props that are not defined in external interface that is used in them, such as inputFormat or onChange handler.
l
You can fallback on asDynamic(), e.g.
Copy code
asDynamic().inputFormat = "dd.MM.yyyy HH:mm"
t
Temp workaround (preferred)
Copy code
var DatePickerProps.inputFormat: String
    get() = asDynamic().inputFormat
    set(value) { asDynamic().inputFormat = value }
Say NO to
asDynamic()
!
And issue