File

platform-components-ng/projects/platform-components-lib/src/lib/components/dialog/qpp-dialog.service.ts

Description

Qpp dialog service

Index

Properties
Methods

Constructor

constructor(overlay: Overlay, trapFactory: ConfigurableFocusTrapFactory)
Parameters :
Name Type Optional
overlay Overlay No
trapFactory ConfigurableFocusTrapFactory No

Methods

close
close(componentIntance: any)

Close

Parameters :
Name Type Optional Description
componentIntance any No

Component instance

Returns : void

void

register
register(view: string, dialogDefinition: QppDialogDefinition)

Register

Parameters :
Name Type Optional Description
view string No

View

dialogDefinition QppDialogDefinition No

Dialog definition

Returns : void

void

show
show(view: string, data: any, config?: QppDialogConfig)

Show

Parameters :
Name Type Optional Description
view string No

View

data any No

Data

config QppDialogConfig Yes

QppDialogConfig

QppDialog

showDialog
showDialog(dialogDef: QppDialogDefinition, data: any)

Show dialog

Parameters :
Name Type Optional Description
dialogDef QppDialogDefinition No

Dialog definition

data any No

Data

Returns : QppDialog

QppDialog

showMessage
showMessage(message: string, messageType: number, duration: number)

Show toast message using Materialize Toast

Parameters :
Name Type Optional Default value Description
message string No

Message to show

messageType number No QppDialogService.MESSAGE_TYPE.SUCCESS

Type of message (warning/error/success)

duration number No 1200

Duration in milliseconds

Returns : void

void

showPopUp
showPopUp(message: string, dialogType: string)

Show popup

Parameters :
Name Type Optional Description
message string No

Message

dialogType string No

Dialog type

Returns : QppDialog

QppDialog

Properties

componentOverlayRef
Type : OverlayRef
Static Readonly DIALOG_TYPE
Type : object
Default value : { CONFIRM: "CONFIRM", PROMPT: "PROMPT" }
dialogMap
Default value : new Map()
Static Readonly MESSAGE_TYPE
Type : object
Default value : { WARNING: 1, ERROR: 2, SUCCESS: 3, NONE: 4 }

Type of message used on showMessage method

viewMap
Default value : new Map<string, QppDialogDefinition>()

result-matching ""

    No results matching ""