MdlComponentHandler class

A component handler interface using the revealing module design pattern. More details on this pattern design here: (JS-Version: Jason Mayes.)

@author Mike Mitterer




application MaterialApplication
Returns your Application-Object. [...]
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


bind(Service service) BindingSyntax
Binds a IOCItem to it's Data-Model
downgradeElement(HtmlElement element) → Future
downgrade() will be called for the given Component and it's children
register(MdlConfig<MdlComponent> config) → void
Registers a class for future use and attempts to upgrade existing DOM. Sample: final ComponentHandler componenthandler = new ComponentHandler(); componenthandler.register(new MdlConfig("mdl-button"));
registerUpgradedCallback(MdlConfig<MdlComponent> config, MdlCallback callback) → void
Allows user to be alerted to any upgrades that are performed for a given component type config The class-config of the MDL component we wish to hook into for any upgrades performed. The callback-function to call upon an upgrade. This function should expect 1 parameter - the HTMLElement which got upgraded.
run<T>({dynamic enableVisualDebugging: false }) → Future<T>
Run is depreciated, please use upgrade instead
upgrade<T>({dynamic enableVisualDebugging: false }) → Future<T>
Upgrades all registered components found in the current DOM. This should be called in your main-function. At the beginning of the upgrade-process it adds the css-classes mdl-js, mdl-dart and mdl-upgrading to the -element. If all components are ready it removes mdl-upgrading. [...]
upgradeAllRegistered() → Future
upgradeElement(HtmlElement element) → Future<void>
Upgrades all children for {element} and returns the current Injector
upgradeElements(List<HtmlElement> elements) → Future<void>
Upgrades a specific list of elements rather than all in the DOM.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toString() → String
Returns a string representation of this object.


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