How to disappear the cross✖️ symbol from custom widget when we opens that widget(no close button I want for closing the widget)?

501
5
Jump to solution
07-02-2020 09:47 AM
sanchigupta
New Contributor

I made a custom widget which contains a form .I do not want the close button in right side of widget panel where we can maximize and close the widget .is there any way to remove the cross symbol from form widget??

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Peter,

  Add this css rule to your apps theme common.css

[install dir]\server\apps\[app#]\themes\[theme name]\common.css

Here is a sample rule for hiding the close button on widget _5.

#_5_panel.jimu-panel>.jimu-panel-title>.btns-container>.close-btn {
  display: none
}

View solution in original post

5 Replies
by Anonymous User
Not applicable
0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Peter,

  Add this css rule to your apps theme common.css

[install dir]\server\apps\[app#]\themes\[theme name]\common.css

Here is a sample rule for hiding the close button on widget _5.

#_5_panel.jimu-panel>.jimu-panel-title>.btns-container>.close-btn {
  display: none
}
sanchigupta
New Contributor

Thanks Robert for answering!!.Suppose my widget name is Form so it would be #_Form_panel.....by doing this it gives error.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Sanchi,

  The Id of the widget is not going to be something like "form" You can run your app and right click your widget and inspect the dom objects to find the id of your widgets panel.

0 Kudos
by Anonymous User
Not applicable

sanchi gupta‌ please see the answer above from Robert in the custom widgets community. Thanks!

0 Kudos