How to make widget as expandable in WAB 2.6

745
7
09-10-2018 07:26 AM
SivaramKrishnan2
New Contributor III

Hi,

I want to make my widget as expandable.

can anyone help me in fixing this. 

0 Kudos
7 Replies
RobertScheitlin__GISP
MVP Emeritus

What theme are you using?

0 Kudos
SivaramKrishnan2
New Contributor III

Robert,

I'm using Foldable Theme.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Sivaram,

   In the foldable theme if you have a widget added to the header controller widget then they will use the foldable panel. Widgets placed in the on screen widget placeholders will use the on screen widget panel (that does not have the fold button).

0 Kudos
SivaramKrishnan2
New Contributor III

Hi Robert,

I want to expand my widget as shown in the below image.

Is that possible to do from the Foldable Theme in WAB 2.6

Regards

Siva

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Is that widget in the Header controller or in an on screen widget placeholder?

0 Kudos
SivaramKrishnan2
New Contributor III

Robert, the widget is in the header controller

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Siva,

Header Controller widget are not sizable by design. The only way to change that is to use a different panel for the HeaderController widget. In the main config.json for the app search for "themes/JewelryBoxTheme/panels/FoldablePanel/Panel" and replace with "jimu/OnScreenWidgetPanel"
and refresh your app.