Skip to content
Edit this page

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
  • • Content to be displayed in the modal can be a template reference or a component.

    content : TemplateRef<any> | (new (...args: any[]) => T)

  • • Configuration for the modal.

    config : ModalOptions<T>

  • • Default closing value which can be overridden by calling modalRef.hide(value).

    closeValue ? : CT

Types Documentation

import type { ModalOptions } from '@siemens/element-ng/modal';
Properties

ModalRef

<T = never, CT = any>
class
import { ModalRef } from '@siemens/element-ng/modal';

Reference to a modal dialog

Constructor
Properties
Accessors
Methods

import type { ModalDependencyInjectionOptions } from '@siemens/element-ng/modal';
Properties


Except where otherwise noted, content on this site is licensed under MIT License.