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
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.
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!
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.