-
public final class ToggleButtonKt
-
-
Method Summary
Modifier and Type Method Description final static UnitToggleButton(String text, Function1<Boolean, Unit> onCheckedChanged, Modifier modifier, Boolean checked, Boolean enabled, ToggleButtonColors colors, MutableInteractionSource interactionSource, Shape shape, Role role, Boolean smallSize)This component is an alternative to ToggleButton, providing the following: a convenient way of providing text;
final static UnitToggleButton(PaintableIcon checkedIcon, PaintableIcon notCheckedIcon, String contentDescription, Function1<Boolean, Unit> onCheckedChanged, Modifier modifier, Boolean checked, Boolean enabled, ToggleButtonColors colors, MutableInteractionSource interactionSource, Shape shape, Role role, IconRtlMode iconRtlMode, Boolean smallSize)§ This component is an alternative to ToggleButton, providing the following: a convenient way of providing a icons for the checked and not checked states;
-
-
Method Detail
-
ToggleButton
@Composable() final static Unit ToggleButton(String text, Function1<Boolean, Unit> onCheckedChanged, Modifier modifier, Boolean checked, Boolean enabled, ToggleButtonColors colors, MutableInteractionSource interactionSource, Shape shape, Role role, Boolean smallSize)
This component is an alternative to ToggleButton, providing the following:
a convenient way of providing text;
-
ToggleButton
@Composable() final static Unit ToggleButton(PaintableIcon checkedIcon, PaintableIcon notCheckedIcon, String contentDescription, Function1<Boolean, Unit> onCheckedChanged, Modifier modifier, Boolean checked, Boolean enabled, ToggleButtonColors colors, MutableInteractionSource interactionSource, Shape shape, Role role, IconRtlMode iconRtlMode, Boolean smallSize)
§ This component is an alternative to ToggleButton, providing the following:
a convenient way of providing a icons for the checked and not checked states;
-
-
-