MaterialButtonBase class

A base class from which to build buttons.

Inheritance
Implementers

Constructors

MaterialButtonBase(HtmlElement element, String role, {bool handleSpacePresses = true})

Properties

ariaRole String
@HostBinding('attr.role')read-onlyinherited
disabled bool
Is the component disabled.
@HostBinding('class.is-disabled')@Input()read / writeinherited
disabledStr String
String value to be passed to aria-disabled.
@HostBinding('attr.aria-disabled')read-onlyinherited
focused bool
Whether button is focused right now.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
hostTabIndex String
read-onlyinherited
isMouseDown bool
Whether the mouse is currently pressed on the button.
read-only
raised bool
Is true if the button should have a box shadow that makes the button look raised.
@Input()read / write
role String
Role of this component used for a11y.
@Input()read / writeinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
tabbable bool
Is the component tabbable.
@Input()read / writeinherited
tabIndex String
@HostBinding('attr.tabindex')read-onlyinherited
tabindex String
The tab index of the component.
@Input()write-onlyinherited
trigger Stream<UIEvent>
Fired when the button is activated via click, tap, or key press.
@Output()read-onlyinherited
visualFocus bool
Whether button appears focused right now.
read-only
zElevation int
The elevation the material-shadow component should show.
read-only

Methods

dispose() → void
Disposes this disposable and any resources it has open.
inherited
focus() → void
Item/component focuses itself
inherited
focusedStateChanged() → void
Overridable method for subclasses that implement push change detection.
handleClick(MouseEvent mouseEvent) → void
Triggers if not disabled.
@HostListener('click')inherited
handleKeyPress(KeyboardEvent keyboardEvent) → void
Triggers on enter and space if not disabled.
@HostListener('keypress')inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
onBlur(UIEvent event) → void
Triggered on blur.
@HostListener('blur')
onFocus(UIEvent event) → void
Triggered on focus.
@HostListener('focus')
onMouseDown(dynamic _) → void
Triggered on a mouse press.
@HostListener('mousedown')
onMouseUp(dynamic _) → void
Triggered on a mouse release.
@HostListener('mouseup')
toString() String
A string representation of this object.
inherited
updateTabIndex() → void
Use this method if you want to manually compute and cache the tab index.
inherited

Operators

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

Constants

lowElevation → const int
1
mediumElevation → const int
4