thana
05/08/2022, 5:14 PMInputProps={{
startAdornment: <InputAdornment position="start">kg</InputAdornment>,
}}
How do i do that in kotlinjs? i cant find any implementation of InputBaseComponentPropsturansky
05/08/2022, 8:04 PMi cant find any implementation of“implementation”?InputBaseComponentProps
thana
05/09/2022, 6:18 AMthana
05/09/2022, 6:36 AMturansky
05/09/2022, 7:42 AMInputProps = jso {
startAdornment = InputAdornment.create {
position = "start"
}
}thana
05/09/2022, 8:38 AMTestFields prop inputProps has the wrong type. InputBaseComponentProps doesnt even have the properties startAdornment or endAdornment although it should have according to the MUI docs. Yet in the same file another Type InputBaseProps which has those properties. Ist this a bug or am i - agian - too stupid to see what is the correct way?
Also: i created a new external interface extending InputBaseComponentProps which in turn declares both fields the same way InputBaseProps does. But this results in an <input> html tag rendered like this: startadornment="[object Object]"turansky
05/09/2022, 1:10 PMYet another working but unintuitive way 😉2 component factories 1 element factory (used in example)
thana
05/09/2022, 1:28 PMturansky
05/09/2022, 1:34 PMInputComponent , which has startAdornment property (not input )thana
05/09/2022, 4:03 PMturansky
05/09/2022, 6:09 PMthana
05/10/2022, 12:19 PMturansky
05/10/2022, 12:30 PMthana
05/10/2022, 12:34 PM<TextField
label="With normal TextField"
id="outlined-start-adornment"
sx={{ m: 1, width: '25ch' }}
InputProps={{
startAdornment: <InputAdornment position="start">kg</InputAdornment>,
}}
/>
I dont think this is currently doable with the mui-wrapperturansky
05/11/2022, 7:19 AMaerialist
05/11/2022, 4:41 PMthana
05/11/2022, 5:29 PMaerialist
05/11/2022, 5:53 PM