DialogViewActivity
class DialogViewActivity
extends
ViewActivity
Represents an application activity with a view that is rendered as a modal dialog (when active). The activity is destroyed automatically when a CloseModal
event is emitted on the view instance.
Note: Use UIComponent.position
(UIStyle.Position
, specifically the gravity
property) to determine the position of the dialog UI.
Constructor
(): DialogViewActivity
.onCloseModal() protected
(): boolean
Handle CloseModal event by destroying this activity; stops propagation of the event.
.view
Inherited from ViewActivity.view
.
.placement
Inherited from ViewActivity.placement
.
.modalShadeOpacity
number
Inherited from ViewActivity.modalShadeOpacity
.
.render()
(callback?: RenderCallback<Output<
UIRenderable
, any>>): void
Inherited from ViewActivity.render
.
.removeViewAsync()
(): Promise<void>
Inherited from ViewActivity.removeViewAsync
.
.restoreFocus()
(firstFocused?: boolean): void
Inherited from ViewActivity.restoreFocus
.
.onFocusIn() protected
(e:
ComponentEvent
<
Component
>): void
Inherited from ViewActivity.onFocusIn
.
.firstFocused
Inherited from ViewActivity.firstFocused
.
.lastFocused
Inherited from ViewActivity.lastFocused
.
.showDialogAsync()
(View:
UIRenderableConstructor
, eventHandler?: (this: DialogViewActivity, e:
ManagedEvent
) => void): Promise<
ViewActivity
>
Inherited from ViewActivity.showDialogAsync
.
.showConfirmationDialogAsync()
(message:
Stringable
|
Stringable
[], title?:
Stringable
, confirmButtonLabel?:
Stringable
, cancelButtonLabel?:
Stringable
): Promise<...>
Inherited from ViewActivity.showConfirmationDialogAsync
.
.name
string
Inherited from AppActivity.name
.
.path
string
Inherited from AppActivity.path
.
.match
Readonly<MatchedPath>
Inherited from AppActivity.match
.
.getParentActivity()
():
AppActivity
Inherited from AppActivity.getParentActivity
.
.getApplication()
():
Application
Inherited from AppActivity.getApplication
.
.activateAsync()
(match?: MatchedPath): Promise<void>
Inherited from AppActivity.activateAsync
.
.destroyAsync()
(): Promise<void>
Inherited from AppActivity.destroyAsync
.
.isActive()
(): boolean
Inherited from AppActivity.isActive
.
.activated
number
Inherited from AppActivity.activated
.
.deactivated
number
Inherited from AppActivity.deactivated
.
.renderContext
Inherited from AppComponent.renderContext
.
.viewportContext
any
Inherited from AppComponent.viewportContext
.
.activationContext
Inherited from AppComponent.activationContext
.
.isPresetComponent() protected
(): boolean
Inherited from Component.isPresetComponent
.
.delegateEvent() protected
(e:
ManagedEvent
, propertyName: string): boolean | void
Inherited from Component.delegateEvent
.
.getParentComponent()
<TParent extends Component = Component>(ParentClass?:
ComponentConstructor
<TParent>): TParent
Inherited from Component.getParentComponent
.
.getBoundParentComponent()
<TParent extends Component>(ParentClass?:
ComponentConstructor
<TParent>): TParent
Inherited from Component.getBoundParentComponent
.
.emitAction()
(name: string, inner?:
ManagedEvent
, context?:
ManagedObject
): void
Inherited from Component.emitAction
.
.propagateComponentEvent() deprecated
(name: string, inner?:
ManagedEvent
): void
Inherited from Component.propagateComponentEvent
.
.managedId
number
Inherited from ManagedObject.managedId
.
.managedState
Inherited from ManagedObject.managedState
.
.getReferenceCount() protected
(): number
Inherited from ManagedObject.getReferenceCount
.
.getManagedReferrers() protected
():
ManagedObject
[]
Inherited from ManagedObject.getManagedReferrers
.
.getManagedParent() protected
<TParent extends ManagedObject = ManagedObject>(ParentClass?:
ManagedObjectConstructor
<TParent>): TParent
Inherited from ManagedObject.getManagedParent
.
.emit()
<TEvent extends ManagedEvent = ManagedEvent, TConstructorArgs extends any[] = any[]>(e: string | TEvent | (new (...args: TConstructorArgs) => TEvent), ...constructorArgs: TConstructorArgs): this
Inherited from ManagedObject.emit
.
.emitChange()
(name?: string): void
Inherited from ManagedObject.emitChange
.
.propagateChildEvents() protected deprecated
(...types: ((new (...args: any[]) =>
ManagedEvent
) | ((e:
ManagedEvent
) => any))[]): this
Inherited from ManagedObject.propagateChildEvents
.
.activateManagedAsync() protected
(): Promise<any>
Inherited from ManagedObject.activateManagedAsync
.
.deactivateManagedAsync() protected
(): Promise<void>
Inherited from ManagedObject.deactivateManagedAsync
.
.destroyManagedAsync() protected
(): Promise<void>
Inherited from ManagedObject.destroyManagedAsync
.
.onManagedStateActivatingAsync() protected
(): Promise<void>
Inherited from ManagedObject.onManagedStateActivatingAsync
.
.onManagedStateActiveAsync() protected
(): Promise<void>
Inherited from ManagedObject.onManagedStateActiveAsync
.
.onManagedStateDeactivatingAsync() protected
(): Promise<void>
Inherited from ManagedObject.onManagedStateDeactivatingAsync
.
.onManagedStateInactiveAsync() protected
(): Promise<void>
Inherited from ManagedObject.onManagedStateInactiveAsync
.
.onManagedStateDestroyingAsync() protected
(): Promise<void>
Inherited from ManagedObject.onManagedStateDestroyingAsync
.