@elemental/ui / Class

LmnModalDialogService

Decorators:@Injectable

No documentation has been provided.

Methods

create()

No documentation has been provided.

Presentation
create(content: LmnModalDialogContent<C, D> | Type$1<C>, data?: D | LmnModalDialogCreationOptions | undefined, options?: LmnModalDialogCreationOptions | undefined): LmnModalDialogState<C, D>;
Parameters
NameTypeDescription
content
LmnModalDialogContent<C, D> | Type$1<C>
data
D | LmnModalDialogCreationOptions | undefined
options
LmnModalDialogCreationOptions | undefined
Returns
Overload #1

Create a modal dialog. Return a state object to manage the modal dialog. You have to attach the modal dialog to the DOM manually.

Presentation
create(content: Type$1<C>, data?: D | undefined): LmnModalDialogState<C, D>;
Parameters
NameTypeDescription
content
Type$1<C>

@param content The content component to render in the modal dialog.

data
D | undefined

@param data The data to pass to the content component.

Returns
Overload #2

Create a modal dialog. Return a state object to manage the modal dialog. You have to attach the modal dialog to the DOM manually.

Presentation
create(content: Type$1<C>, options?: LmnModalDialogCreationOptions | undefined): LmnModalDialogState<C, D>;
Parameters
NameTypeDescription
content
Type$1<C>

@param content The content component to render in the modal dialog.

options
LmnModalDialogCreationOptions | undefined

@param options The options to create the modal dialog with.

Returns
Overload #3

Create a modal dialog. Return a state object to manage the modal dialog. You have to attach the modal dialog to the DOM manually.

Presentation
create(content: Type$1<C>, data?: D | undefined, options?: LmnModalDialogCreationOptions | undefined): LmnModalDialogState<C, D>;
Parameters
NameTypeDescription
content
Type$1<C>

@param content The content component to render in the modal dialog.

data
D | undefined

@param data The data to pass to the content component.

options
LmnModalDialogCreationOptions | undefined

@param options The options to create the modal dialog with.

Returns
Overload #4

Create a modal dialog. Return a state object to manage the modal dialog. You have to attach the modal dialog to the DOM manually.

Presentation
create(content: LmnModalDialogContent<C, D>, data?: unknown): LmnModalDialogState<C, D>;
Parameters
NameTypeDescription
content
LmnModalDialogContent<C, D>

@param content The content component to render in the modal dialog.

data
unknown

@param data The data to pass to the content component.

Returns

render()

No documentation has been provided.

Presentation
render(content: LmnModalDialogContent<C, D> | Type$1<C>, data?: LmnModalDialogCreationOptions | D | undefined, options?: HTMLElement | LmnModalDialogCreationOptions | undefined, parent?: HTMLElement | undefined): LmnModalDialogState<C, D>;
Parameters
NameTypeDescription
content
LmnModalDialogContent<C, D> | Type$1<C>
data
LmnModalDialogCreationOptions | D | undefined
options
HTMLElement | LmnModalDialogCreationOptions | undefined
parent
HTMLElement | undefined
Returns
Overload #1

Create a modal dialog and attach it to the DOM. Return a state object to manage the modal dialog.

Presentation
render(content: Type$1<C>, options?: LmnModalDialogCreationOptions | undefined, parent?: HTMLElement | undefined): LmnModalDialogState<C, D>;
Parameters
NameTypeDescription
content
Type$1<C>

@param content The content component to render in the modal dialog.

options
LmnModalDialogCreationOptions | undefined

@param [options] The options to create the modal dialog with.

parent
HTMLElement | undefined

@param [parent] The parent element to attach the modal dialog to.

Returns
Overload #2

Create a modal dialog and attach it to the DOM. Return a state object to manage the modal dialog.

Presentation
render(content: Type$1<C>, data?: NotModalDialogCreationOptions<D> | undefined, parent?: HTMLElement | undefined): LmnModalDialogState<C, D>;
Parameters
NameTypeDescription
content
Type$1<C>

@param content The content component to render in the modal dialog.

data
NotModalDialogCreationOptions<D> | undefined

@param data The data to pass to the content component.

parent
HTMLElement | undefined

@param [parent] The parent element to attach the modal dialog to.

Returns
Overload #3

Create a modal dialog and attach it to the DOM. Return a state object to manage the modal dialog.

Presentation
render(content: Type$1<C>, data?: D | undefined, options?: LmnModalDialogCreationOptions | undefined, parent?: HTMLElement | undefined): LmnModalDialogState<C, D>;
Parameters
NameTypeDescription
content
Type$1<C>

@param content The content component to render in the modal dialog.

data
D | undefined

@param [data] The data to pass to the content component.

options
LmnModalDialogCreationOptions | undefined

@param [options] The options to create the modal dialog with.

parent
HTMLElement | undefined

@param [parent] The parent element to attach the modal dialog to.

Returns
Overload #4

Create a modal dialog and attach it to the DOM. Return a state object to manage the modal dialog.

Presentation
render(content: LmnModalDialogContent<C, D>, data?: D | undefined, parent?: HTMLElement | undefined): LmnModalDialogState<C, D>;
Parameters
NameTypeDescription
content
LmnModalDialogContent<C, D>

@param content The content component to render in the modal dialog.

data
D | undefined

@param [data] The data to pass to the content component.

parent
HTMLElement | undefined

@param [parent] The parent element to attach the modal dialog to.

Returns