Auto Hide Attribute Table

809
2
Jump to solution
07-29-2016 03:40 AM
JasonStanton__GISP
Occasional Contributor

Is there a way to auto hide the attribute table widget, not on startup, but after a certain period of time after it is 'called' to?  I'm using WAB 2.0.  Any assistance would be greatly appreciated.

Jason

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

Jason,

  That is pretty simple to do.

In the onOpen function add these lines:

        setTimeout(lang.hitch(this, function(){
          this._closeTable()
        }), 5000);

and also add them to the _openTable function right above:

return this._loadInfoDef;

The hard part will be how to prevent this from firing when someone is interacting with the AT widget. In that case you would not want to close it when someone is working with it.

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

Jason,

  That is pretty simple to do.

In the onOpen function add these lines:

        setTimeout(lang.hitch(this, function(){
          this._closeTable()
        }), 5000);

and also add them to the _openTable function right above:

return this._loadInfoDef;

The hard part will be how to prevent this from firing when someone is interacting with the AT widget. In that case you would not want to close it when someone is working with it.

0 Kudos
JasonStanton__GISP
Occasional Contributor

Thanks for the help!  As you suggested it is a real issue when someone is interacting with the AT widget.  I was thinking of something like the auto hide checkbox from the Flex eSearch widget.

Thanks again!

0 Kudos