File

projects/m2-core/src/lib/core/service/system/actions.service.ts

Index

Methods

Constructor

constructor(confirmationService: ConfirmationService, systemService: SystemService)
Parameters :
Name Type Optional
confirmationService ConfirmationService No
systemService SystemService No

Methods

Public confirm
confirm(confirmFn: Function, msg?: string, event?: MouseEvent | KeyboardEvent, rejectFn?: Function, omitConfirm?: boolean)
Parameters :
Name Type Optional
confirmFn Function No
msg string Yes
event MouseEvent | KeyboardEvent Yes
rejectFn Function Yes
omitConfirm boolean Yes
Returns : void
Public deleteWithConfirm
deleteWithConfirm(deleteFn: Function, msg?: string, event?: MouseEvent | KeyboardEvent, rejectFn?: Function, omitConfirm?: boolean)
Parameters :
Name Type Optional
deleteFn Function No
msg string Yes
event MouseEvent | KeyboardEvent Yes
rejectFn Function Yes
omitConfirm boolean Yes
Returns : any | void
Public prompt
prompt(promptFn: (comment: string,optionsMap: StringMap) => void, msg?: string, event?: MouseEvent | KeyboardEvent, commentMandatoriness, options?: Option<boolean>[], richCommentEditor, commentMaxLength: number, initialComment?: string)
Parameters :
Name Type Optional Default value
promptFn function No
msg string Yes
event MouseEvent | KeyboardEvent Yes
commentMandatoriness No MandatorinessType.Optional
options Option<boolean>[] Yes
richCommentEditor No true
commentMaxLength number No 500
initialComment string Yes
Returns : void

results matching ""

    No results matching ""