Rohan Maity
01/16/2022, 12:41 PMMDCTextField
But is not getting evenly spread
But with core TextInput
got evenly spread
Div(
attrs = {
style {
display(DisplayStyle.Flex)
width(100.percent)
justifyContent(JustifyContent.SpaceBetween)
flexFlow(FlexDirection.Row, FlexWrap.Nowrap)
}
}
) {
val annualCtcState = remember { mutableStateOf("") }
MDCTextField(
annualCtcState.value,
{
type = MDCTextFieldCommonOpts.Type.Outlined
label = "Annual CTC"
},
{
style {
margin(8.px)
width(33.percent)
title("Annual CTC")
}
onInput {
annualCtcState.value = it.value
}
}
)
😕Big Chungus
01/16/2022, 12:45 PMRohan Maity
01/16/2022, 12:46 PMDiv(
attrs = {
style {
display(DisplayStyle.Flex)
width(100.percent)
justifyContent(JustifyContent.SpaceBetween)
flexFlow(FlexDirection.Row, FlexWrap.Nowrap)
}
}
) {
val annualCtcState = remember { mutableStateOf("") }
MDCTextField(
annualCtcState.value,
{
type = MDCTextFieldCommonOpts.Type.Outlined
label = "Annual CTC"
},
{
style {
margin(8.px)
width(33.percent)
title("Annual CTC")
}
onInput {
annualCtcState.value = it.value
}
}
)
val inHandPerMonthState = remember { mutableStateOf("") }
MDCTextField(
inHandPerMonthState.value,
{
type = MDCTextFieldCommonOpts.Type.Outlined
label = "In Hand Per Month"
},
{
style {
margin(8.px)
width(33.percent)
title("In Hand per month")
}
onInput {
inHandPerMonthState.value = it.value
}
}
)
val bonusState = remember { mutableStateOf("") }
MDCTextField(
bonusState.value,
{
type = MDCTextFieldCommonOpts.Type.Outlined
label = "Bonus"
},
{
style {
margin(8.px)
width(33.percent)
title("Bonus")
}
onInput {
bonusState.value = it.value
}
}
)
}
Rohan Maity
01/16/2022, 12:46 PMwidth
is not working as it was in core TextInput
Big Chungus
01/16/2022, 12:47 PMRohan Maity
01/16/2022, 12:48 PMBig Chungus
01/16/2022, 12:54 PMBig Chungus
01/16/2022, 12:55 PMRohan Maity
01/16/2022, 12:56 PMwidth
style in child elements onlyBig Chungus
01/16/2022, 12:56 PMRohan Maity
01/16/2022, 12:57 PMBig Chungus
01/16/2022, 12:57 PMBig Chungus
01/16/2022, 12:57 PMBig Chungus
01/16/2022, 12:57 PMRohan Maity
01/16/2022, 12:59 PMBig Chungus
01/16/2022, 1:01 PMRohan Maity
01/16/2022, 1:02 PMBig Chungus
01/16/2022, 1:05 PMBig Chungus
01/16/2022, 1:05 PMRohan Maity
01/16/2022, 1:08 PMDiv
would not that apply with to parent onlyBig Chungus
01/16/2022, 1:12 PMBig Chungus
01/16/2022, 1:13 PM.mdc-textfield > {
width: 30%
}
Big Chungus
01/16/2022, 1:14 PMRohan Maity
01/16/2022, 1:18 PMflexGrow
for my purpose
but it did not add flexGrow
in the final htmlcorneil
02/02/2022, 8:20 AM