cancel
Showing results for 
Search instead for 
Did you mean: 

Toggle - Text alignment

Please add a align parameter where we can set the alignment off the true and false text. 

 

On the checkbox and other controls the text is aligned on the left next to the checkbox, where on the toggle control the text is aligned right. This is a strange choice because the visuals now looks strange when combined with other controls. See picture:

ToggleControl.PNG

 

Offcourse I can make the width off the control smaller, but this doesn't work in cases that the true and false text has different lengths in characters. 

 

So please add a aligment parameter and set the default to align.Left. Or if faster just align the text off the control left by design, which I think is the normal behaviour we all expect.

Status: New
Comments
Level: Powered On

The only workaround I can think of is to calculate the width value based on the true/false text...

 

Width = If(<condidtion to set toggle true>, TrueWidth, FalseWidth)

 

EDIT:

I suppose you could remove all text from the toggle and just add a label whose value changes based on the toggle value.

Level 10
I understand the workaround, but prefer the PowerApps team change the design to align the text left by default. Still thanks for the comment. Greatings Paul
Level 8

@pyeethanks for the tip, dynamic width in function of the FalseText & TrueText string length works well!

Level: Powered On

I struggled as well with the lack of options for the toggle control only having a property to show or hide the label (text). I'd like to see property options for that label text so that when it's true I can have a different color text to emphasise the choice. My workaround is setting the ShowLabel to false and adding in a label with conditions for both the text and the color properties based on the toggle being true or false.