openhab / org.openhab.ui.habpanel

OUTDATED repo - HABPanel has moved to the openhab-webui repo!
https://github.com/openhab/openhab-webui
Eclipse Public License 1.0
96 stars 92 forks source link

Suffix with space at beginning #358

Open 8666 opened 5 years ago

8666 commented 5 years ago

On the Button widget, there is an option to add suffix after the value called "Unit (suffix)".

I would like to add a word sometimes and not a unit so the result should be something like "3 active players". The suffix should be " active players" with space.

It does not accept a space at the start so for a workaround I add a dot to get "3. active players"

Can you fix this small bug please?

8666 commented 5 years ago

I figured out that I can use the Format field instead of the suffix to have both prefix and a suffix as needed. Like "Prefix %s suffix". Nice.

Why is this field introduced then anyway?