likemike Posted March 21, 2021 Share Posted March 21, 2021 Hello! 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? Regards Mike Link to comment Share on other sites More sharing options...
Sherzod Posted March 21, 2021 Share Posted March 21, 2021 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']) 2 Link to comment Share on other sites More sharing options...
likemike Posted March 21, 2021 Author Share Posted March 21, 2021 👍 Link to comment Share on other sites More sharing options...
fraxzi Posted October 3, 2021 Share Posted October 3, 2021 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 More sharing options...
Sherzod Posted October 3, 2021 Share Posted October 3, 2021 1 hour ago, fraxzi said: I tried this with panel (parent layout is 'border') but didn't work Hello, Do you have a simple testcase to check? Link to comment Share on other sites More sharing options...
playsoft Posted September 14, 2022 Share Posted September 14, 2022 On 3/21/2021 at 5:12 AM, Sherzod said: Hello, Try to use: JSInterface.JSConfig('cls', ['xx']) Not Working. ContainerAPP.JSInterface.JSConfig('cls', ['CR']); Link to comment Share on other sites More sharing options...
Sherzod Posted September 14, 2022 Share Posted September 14, 2022 15 minutes ago, playsoft said: Not Working. Yes, it won't work. It will work during initialization and when creating a control dynamically at runtime. Link to comment Share on other sites More sharing options...
Sherzod Posted September 14, 2022 Share Posted September 14, 2022 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 More sharing options...
Recommended Posts