Resizing widget dynamically

1483
16
Jump to solution
01-11-2018 08:44 AM
VenkataSrikanth_Dasari
Occasional Contributor

Hi,

Once the user done with the operations on the map, I need a button to resize to 80% of the web page and then back to normal stage whenever he wants to do some operations on the map..

I am configuring widget in widgetOnScreen node..

Please do the needful.

Cheers,

Srikanth Dasari

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Srikanth,

   OK then in that case in your widget use code like this:

var tmp = {
  l: null,
  t: null,
  w: 500,
  h: 500
}
this.getPanel().resize(tmp);‍‍‍‍‍‍‍

View solution in original post

16 Replies
RobertScheitlin__GISP
MVP Emeritus
I need a button to resize to 80% of the web page

Why on earth?...

0 Kudos
VenkataSrikanth_Dasari
Occasional Contributor

??

0 Kudos
RickeyFight
MVP Regular Contributor

Can you provide screen shots of what you are thinking? 

0 Kudos
VenkataSrikanth_Dasari
Occasional Contributor

Initially, widget will be in default size then I will do some operations..blah blah...

which is a big massive report and it requires entire page to display.. I have to resize here to show the entire report (I don't want user to resize the widget). Whenever user is going to generate the report for the other operation.. here I would like to give a button to get back to the normal size of the widget...

Hope you understood the concept now..

Cheers,

Srikanth Dasari

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

OK,  you are really confusing things by saying you want the button to resize. I think you mean that you want the widget panel to resize, right?

0 Kudos
VenkataSrikanth_Dasari
Occasional Contributor

Yes. Button is to reset to the normal state..

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Srikanth,

   OK then in that case in your widget use code like this:

var tmp = {
  l: null,
  t: null,
  w: 500,
  h: 500
}
this.getPanel().resize(tmp);‍‍‍‍‍‍‍
VenkataSrikanth_Dasari
Occasional Contributor

Awesome !!! 

Cheers,

Srikanth Dasari

0 Kudos
VenkataSrikanth_Dasari
Occasional Contributor

Hi Robert,

Could you please help me on maximizing the widget programmatically?? 

Cheers,

Srikanth Dasari

0 Kudos