Anybody knows how to align the button? I would like something like: TEXT: SWITCH but instead the button is way below, I tried several things but it seems not able to move, or just moves below the text... is there a solution? please check my screenshot, thank you for your help!
Yeah I have had this problem too. Just change the Display property of the switch to Block and if anything is not quite positioned vertically use the margin top to move it down see example:
Thank you for the tip... yes, it works, except it moves to the bottom like this:
is there a way to put the label on the side? Thank you for all your help.
Another thing could be using your solution, create columns, on one side the label and the other the item but that that will look ugly as it does not look like the rest of the form controls.
You could also:
- Place both the Label and the Switch in a single Column element
- Remove the Column Left Padding to vertically align with the other form controls
- Change the Display property of the Column to flex
- Apply Label Padding Top to align vertically and Right to adjust the space between the Label and the Switch
2 Likes
Thank you @yordanov you are awesome!