irigsoft Posted February 14, 2023 Share Posted February 14, 2023 Hello, I try to add userCls in all my components and controls in Form.OnCreate I use this code but I get error when control is uniHiddenPanel or ScreenMask: "There is no Default JavaScript Object [UniHiidenPanel1 : TuniHiddenPanel]" for I := 0 to ComponentCount - 1 do begin TUniControl (Components [I]).JSInterface.JSConfig('userCls', ['mycustomCSS']); end; How to check if Default JavaScript object exists ? Quote Link to comment Share on other sites More sharing options...
irigsoft Posted February 14, 2023 Author Share Posted February 14, 2023 Sorry, I found it: if TUniControl (Components [I]).JSControl <> nil then begin 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 14, 2023 Share Posted February 14, 2023 Yes. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.