File

core/modal/modal.service.ts

Description

Service to show a modal.

Index

Methods

Constructor

constructor(modalService: BsModalService)
Parameters :
Name Type Optional
modalService BsModalService No

Methods

Async acknowledge
acknowledge(title: string, body: string, status: StatusType, acknowledgeLabel: string)

Shows a quick acknowledge message modal.

Parameters :
Name Type Optional Default value Description
title string No

The title of that modal.

body string No

The text body to display.

status StatusType No Status.INFO

The status.

acknowledgeLabel string No gettext('Confirm')

The label to use.

Returns : {}
Async confirm
confirm(title: string, body: string, status: StatusType, labels: any)

Shows a quick confirm message modal.

Parameters :
Name Type Optional Default value Description
title string No

The title of that modal.

body string No

The text body to display.

status StatusType No Status.INFO

The status.

labels any No {}

The labels to use. Default: { ok: 'Confirm', cancel: 'Cancel'}

Returns : {}

result-matching ""

    No results matching ""