MdlComponent class

Mixed in types

Constructors

MdlComponent(Element element, Container injector)

Properties

attributes → Map<String, String>
read-only
classes CssClassSet
read-only
element Element
This is the element witch has the mdl-js- class
final
hub Element
Main element. If there is no child element like in mdl-button hub = button = element [...]
read-only
injector Container
final
onClick ElementStream<MouseEvent>
read-only
onInput ElementStream<Event>
read-only
parent MdlComponent
read-only
visualDebugging ↔ bool
If an error occurs in the Component and {visualDebugging} is true a red border will be drawn around the Component {visualDebugging} is set in {_upgradeElement}
read / write
eventStreams → List<StreamSubscription>
Collects all the registered Events - helpful for downgrading an element Sample: eventStreams.add(input.onFocus.listen( _onFocus));
final, inherited
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

attached() → void
Called after DomRenderer has added this component to the DOM or if MdlComponentHandler hast upgrade the component and it's already in the DOM! [...]
cancelStream(StreamSubscription stream) → void
Helper for cancelling streams - checks for null
downgrade() → void
Cancels all the registered streams
query(String selector, { bool logError: true }) Element
Searches for child of element based on the given selector [...]
update() → void
Called by the framework after styles or attributes are updated from an external Component like MaterialAttribute or MaterialClass
waitForChild<T>(String selector, { Duration wait: const Duration(milliseconds: 100), int maxIterations: 10 }) → FutureOr<T>
Waits until the first descendant element of element that matches the specified selector is available. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited