import com.esri.viewer.BaseWidget; private function CloseMe():void   {    var data:Object =    {     id: this.widgetId,     state: BaseWidget.WIDGET_CLOSED    };    ViewerContainer.dispatchEvent(new AppEvent(AppEvent.WIDGET_STATE_CHANGED,data,null));   }
import com.esri.viewer.WidgetStates; private function CloseMe():void   {    var data:Object =    {     id: this.widgetId,     state: WidgetStates.WIDGET_CLOSED    };    ViewerContainer.dispatchEvent(new AppEvent(AppEvent.WIDGET_STATE_CHANGED,data,null));   }
       widgetState = WIDGET_CLOSED;        notifyStateChanged(WidgetStates.WIDGET_CLOSED);
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.