Forum Discussion

DrewGillow's avatar
DrewGillow
Cloud Apps
03-01-2023
Solved

Widget style doesn't work on Text Widget

The new feature to be able to change the style of individual widgets does not work on the Text Widget.

I would like to have the radius corners on the data widgets and have a solid block of color for some of the text widgets, but that isn't possible.  

I tried to change the background color to white, but that still left the border color and radius border.

  • Hi DrewGillow ,

    Try the below script (I haven't tried it on Sisense latest version):
    widget.on('ready', ()=> {
       $(element).parent().css('border-radius', '20px');
       $(element).parent().parent().css('border-radius', '20px');
    })
     
    In general, you can control this setting from the "look and feel" option in the Admin tab:

     

     Feel free to reach out if you have further questions, we're always happy to help (: 
    Paldi Solutions - Number #1 Sisense Plugins Developer 

     

2 Replies

Replies have been turned off for this discussion
  • Hi DrewGillow ,

    Try the below script (I haven't tried it on Sisense latest version):
    widget.on('ready', ()=> {
       $(element).parent().css('border-radius', '20px');
       $(element).parent().parent().css('border-radius', '20px');
    })
     
    In general, you can control this setting from the "look and feel" option in the Admin tab:

     

     Feel free to reach out if you have further questions, we're always happy to help (: 
    Paldi Solutions - Number #1 Sisense Plugins Developer 

     

  • The admin tab works and effects all widgets.  I was looking to over ride the admin tab settings for the text box widget, but can't find it.

    You are correct that the edit script can work on the text widget.