EnterAcceptsDirective class

If attached to yes-no buttons, it will listen for Enter keyup events and trigger the yes action on them.

Inheritance
Annotations
  • @Directive(selector: 'material-yes-no-buttons[enterAccepts]', visibility: Visibility.all)

Constructors

EnterAcceptsDirective(MaterialYesNoButtonsComponent _yesNo, Element element, @Optional() KeyUpBoundaryDirective? boundary)

Properties

enterAccepts bool
Enables the directive to be conditionally applied.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
noButton MaterialButtonComponent?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
yesButton MaterialButtonComponent?
no setter

Methods

ngOnDestroy() → void
Executed before the directive is removed from the DOM and destroyed.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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