Mike Dawson
11/10/2022, 9:29 PMLocalizationProvider {
dateAdapter = AdapterDateFns
MobileDatePicker {
componentsProps
asDynamic().onChange = { it: Date ->
println(it.getTime())
}
asDynamic().renderInput = { it: BaseTextFieldProps ->
TextField.create {
onClick = it.onClick
value = it.value
label = it.label
}
}
}
}
Kotlin MUI showcase only has an inline calendar:
https://karakum-team.github.io/kotlin-mui-showcase/#/pickers
I want to use the MUI date pickers as per:
https://mui.com/x/react-date-pickers/getting-started/
Any examples or suggestions? Sorry I'm not that familiar with the JS/React side of things. Do I need to make a new wrapper file with the actual properties, or am I missing something?turansky
11/11/2022, 11:50 AMProps
extensions in this case:
1. No dynamic
please
2. After wrappers update you will see which extensions are redundantturansky
11/11/2022, 11:52 AMMike Dawson
11/11/2022, 4:51 PM