SiModalService documentation¶
import { SiModalService } from '@siemens/element-ng/modal'; Attributes and Methods¶
| Name | Type | Description |
|---|---|---|
| show() ¶ | <T, CT = any>(content: TemplateRef<any> | (new (...args: any[]) => T), config: ModalOptions<T>, closeValue?: CT) => ModalRef<T, CT> | Shows a modal with the given content and configuration. Returns: A reference to the modal. Parameters
|
Types Documentation¶
import type { ModalOptions } from '@siemens/element-ng/modal'; -
Whether to enable animation.
-
aria-labelled-by value.
-
Angular bindings for component content, created with
inputBinding,outputBinding, ortwoWayBinding. Ignored for template content. -
Additional CSS class.
-
Optional environment Injector.
environmentInjector?:
EnvironmentInjectorInherited from ModalDependencyInjectionOptions¶ -
When set to true, clicking the backdrop has no effect.
-
Optional element Injector.
injector?:
InjectorInherited from ModalDependencyInjectionOptions¶ -
Use this to assign values to either
@Input()orinput()fields of the provided component. If a template is used, the values are available in the template context.inputValues?:
Record<string, unknown>¶ -
Handle Esc to close/message.
-
When set to true, backdrop click or Esc don't close the modal. Instead a message will be sent.
-
Additional providers for the modal.
providers?:
StaticProvider[]Inherited from ModalDependencyInjectionOptions¶
import { ModalRef } from '@siemens/element-ng/modal';Reference to a modal dialog
-
The default close value of the modal.
closeValue?:
CT¶ -
The modal options passed during creation.
See: SiModalService
data:
ModalOptions<Record<string, any>>=`{}`¶ -
Custom class for modal-dialog
dialogClass:
string=''¶ -
Close the modal with a custom close value.
-
ignoreBackdropClick:
boolean=true¶ -
The layer of the modal. The modal with the highest layer will be shown on top.
-
Allows messaging state to consumer w/o closing the dialog.
message:
Subject<CT | undefined>=new Subject<CT | undefined>()¶ -
Emits the modal element reference when it is shown.
shown:
ReplaySubject<ElementRef<any>>=new ReplaySubject<ElementRef>(1)¶
import type { ModalDependencyInjectionOptions } from '@siemens/element-ng/modal'; -
Optional environment Injector.
-
Optional element Injector.
-
Additional providers for the modal.
Except where otherwise noted, content on this site is licensed under MIT License.