[IGN-3345] Perspective Style Classes - text-overflow ellipsis

Good morning.
I am using Ignition 8.1.15 and I would like that when a text does not fit in a label, ellipses (...) appear.
I have set the style class in this way, but it doesn't work.

image


image

Best Regards.

In which container is the label?

The label is a flex container.

This is a known issue with multiple components. We have an open issue to repair the problem, but no ETA.

Thanks.

In the mean time you can add this workaround:
Put this in the backgroundimg of the style, change the StyleFolder\/StyleName to match your style class (escape the / for folders)
image

}.psc-StyleFolder\/StyleName span{overflow:hidden; text-overflow:ellipsis;} .psc-StyleFolder\/StyleName{

Ok. Thanks.

Hi,

This bug has been fixed since 8.1.11.
https://forum.inductiveautomation.com/t/nightly-8-1-changelogs-2021/42410/158

Added textStyle prop to the Label Component. It allows for text overflow ellipsis. To display ellipsis, set props.textStyle overflow: hidden, whiteSpace: nowrap, textOverflow: ellipsis.

image

Hope you will find this helpful.

Kind regards.

1 Like

Good morning.

The problem is that I want to bind these properties (and others) in "style -> classes".
So the solution is to create a Style Class with just those 3 properties and bind it to "textStyle -> classes"?

image