Jump to content

How to set LayoutConfig.Cls of TUnimLabel on runtime?


likemike

Recommended Posts

33 minutes ago, likemike said:

I create TUnimLabels on runtime and want them to rotate 90 degrees. Therefore I want to use CSS (LayoutConfig.Cls).
But TUniCustomLayoutBase.Cls is not published.
What can I do?

Hello,

Try to use: 

JSInterface.JSConfig('cls', ['xx'])

 

  • Like 2
Link to comment
Share on other sites

  • 6 months later...

Hi,

I tried this with panel (parent layout is 'border') but didn't work

        JSInterface.JSConfig('width', ['25%']);

I'd like to change the width at runtime.

any working suggestion?

Thanks,

Frances

Link to comment
Share on other sites

  • 11 months later...
55 minutes ago, Sherzod said:

Yes, it won't work. It will work during initialization and when creating a control dynamically at runtime.

 

1 hour ago, playsoft said:

ContainerAPP.JSInterface.JSConfig('cls', ['CR']);

You can try JSCall method instead, for example:

UniComp.JSInterface.JSCall('addCls', ['xx']);
UniComp.JSInterface.JSCall('removeCls', ['xx']);

 

Link to comment
Share on other sites

×
×
  • Create New...