File

projects/components/src/widgets/common/dialog/alert-dialog/alert-dialog.component.doc.ts

Description

The wmAlertdialog component defines the alertdialog widget.

Index

Methods
Inputs

Methods

onOk
onOk($event: MouseEvent, widget: any)

Callback function which will be triggered when the ok button for the dialog is clicked.

Parameters :
Name Type Optional Description
$event MouseEvent No

DOM event on which call back is triggered

widget any No

Instance of the alertdialog widget

Returns : void
onOpen
onOpen($event: MouseEvent, widget: any)

Callback function which will be triggered when the dialog is opened.

Parameters :
Name Type Optional Description
$event MouseEvent No

DOM event on which call back is triggered

widget any No

Instance of the alertdialog widget

Returns : void

Inputs

alerttype

This property defines the alerttype of the alertdialog widget.

Allowed Values: Standard Patterns like 'error', 'information', 'success', 'warning'

Type : string

Default value : 'error'

animation

This property specifies the animation applied to the alertdialog widget.

Allowed Values: Standard Patterns like 'bounce', 'fadeIn', 'rotateOut', 'check', etc

Type : string

Default value : ''

closable

This property specifies if the dialog will have the close icon in header or not

Type : boolean

Default value : true

iconclass

This property sets the icon for dialog header.

Bindable: true

Type : string

Default value : 'wi wi-warning'

iconheight

This property sets the icon height for icon in dialog header.

Type : string

iconmargin

This property sets the icon margin for icon in dialog header.

Type : string

iconurl

This property sets the url for icon in dialog header.

Bindable: true

Type : string

iconwidth

This property sets the icon width for icon in dialog header.

Type : string

message

This property specifies the message for the alertdialog widget.

Bindable: true

Type : string

Default value : 'I am an alert box!'

modal

This property specifies if the dialog should behave as a modal or not

Type : boolean

Default value : false

name

Name of the alertdialog widget.

Type : string

oktext

This property specifies the ok button text for the alertdialog widget.

Bindable: true

Type : string

Default value : 'OK'

tabindex

This property specifies the tab order of the alertdialog Widget.

Type : number

Default value : 0

title

This property specifies the title for the alertdialog widget.

Bindable: true

Type : string

Default value : 'Alert'

result-matching ""

    No results matching ""