SiModalService documentation¶provided in root✓Attributes and Methods¶NameTypeDefaultDescriptionshow(...)¶<T, CT: any> (content: (TemplateRef<any> | (args: any[]) => {}), config: ModalOptions<T>, closeValue: CT) => ModalRef<T, CT>Shows a modal with the given content and configuration.Returns A reference to the modal.Parameterscontent: (TemplateRef<any> | (args: any[]) => {}) Content to be displayed in the modal can be a template reference or a component.config: ModalOptions<T> Configuration for the modal.closeValue: CT Default closing value which can be overridden by calling modalRef.hide(value) .Types Documentation¶ModalRef<T: never, CT: any>¶Class Reference to a modal dialogConstructor() => {}¶Properties The default close value of the modal. closeValue?: CT¶ The modal options passed during creation. See SiModalService data: ModalOptions = {}¶detach: () => void = () => {}¶ Custom class for modal-dialog dialogClass: string = ''¶ Emits the close value when the modal is hidden. hidden: Subject<(undefined | CT)> = ...¶ Close the modal with a custom close value. hide: (reason: CT) => void = () => {}¶ignoreBackdropClick: boolean = true¶isCurrent: () => boolean = () => false¶ The layer of the modal. The modal with the highest layer will be shown on top. layer: number = 0¶ Allows messaging state to consumer w/o closing the dialog. message: Subject<(undefined | CT)> = ...¶ Emits the modal element reference when it is shown. shown: ReplaySubject<ElementRef<any>> = ...¶Accessorsget content: T¶MethodsmessageOrHide(reason: CT) => void¶ When data.disableAutoHide is set, messages the reason , otherwise calls hide .Parametersreason?: CT¶setInput(input: string, value: unknown) => void¶ Set the input of a component shown in the modal.Parametersinput: string¶value: unknown¶ModalOptions<T: Record<string, any>> extends ModalDependencyInjectionOptions¶Interface Properties Whether to enable animation. animated?: boolean¶ aria-labelled-by value. ariaLabelledBy?: string¶ Additional CSS class. class?: string¶ Optional environment Injector. environmentInjector?: EnvironmentInjector from environmentInjector¶ When set to true, clicking the backdrop has no effect. ignoreBackdropClick?: boolean¶ Optional element Injector. injector?: Injector from injector¶ Use this to assign values to either @Input() or input() 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. keyboard?: boolean¶ When set to true, backdrop click or Esc don't close the modal. Instead a message will be sent. messageInsteadOfAutoHide?: boolean¶ Additional providers for the modal. providers?: StaticProvider[] from providers¶ModalDependencyInjectionOptions¶Interface Properties Optional environment Injector. environmentInjector?: EnvironmentInjector¶ Optional element Injector. injector?: Injector¶ Additional providers for the modal. providers?: StaticProvider[]¶ Except where otherwise noted, content on this site is licensed under MIT License.