SkawaPromptComponent class

A prompt component that asks a yes or no question from the user inside a modal. You can specify callbacks for both cases, a question, custom yes-no strings, . and also when should the modal be visible or not.

Example

Annotations
  • @Component(selector: 'skawa-prompt', templateUrl: 'prompt.html', directives: [MaterialDialogComponent, ModalComponent, MaterialYesNoButtonsComponent], changeDetection: ChangeDetectionStrategy.OnPush)

Constructors

SkawaPromptComponent(ChangeDetectorRef _cd)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
isVisible bool
@Input('visible')read / write
message String
@Input()read / write
messageText HtmlElement
@ViewChild('messageText')read / write
@ViewChild(ModalComponent)read / write
noCallback Function
@Input('no')read / write
pending bool
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
textNo String
@Input()read / write
textYes String
@Input()read / write
yesCallback Function
@Input('yes')read / write
yesNoButtonsComponent ↔ MaterialYesNoButtonsComponent
@ViewChild(MaterialYesNoButtonsComponent)read / write

Methods

no() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
yes() → void

Operators

operator ==(Object other) bool
The equality operator.
inherited