m4d_directive library

Classes

Action
Simples form of an Action [...]
ActionBus
Main-Class for sending Actions
ActionBusImpl
Implements the ActionBus-interface via Streams ActionBus is registered by default for DI [...]
ActionName
Strong-Typed ActionName [...]
DataAction<T>
This Action carries a data-package [...]
DataAttribute
Helper for requesting a proper value from the components HTML-Element [...]
DataStore
The DataStores are responsible for managing business logic and data. [...]
DataStoreChangedEvent<T extends Action>
Received by a concrete implementation of DataStore if something has changed in the DataStore
DefaultSimpleDataStore
Default implementation for SimpleValueStore [...]
DirectivesModule
Dispatcher
The Dispatcher is the central hub that manages all data flow in a MDL(Flux) application. [...]
DomRenderer
DomRenderer converts a String into HtmlNodes
ElementProperties
Emitter
This is the base class for DataStore so it's not really a DataStore but if you need an object that informs others about an internat change-state the Emitter can help you [...]
FireOnlyDataStore
Fire-Only DataStore [...]
FromJson
Marker for all objects that can be deserialize from Json
HasDynamicParentScope
For Components like _MaterialDialogComponent where it's necessary to change the ParentScope at runtime. For example if MaterialDialog pops up the Parent-Scope is set to the new Dialog
JsonAction<T extends ToJson>
This Action carries a special data-package. The data-package can be serialized to JSON [...]
JsonObject
Marker for all objects that can be serialized and deserialize from Json
ListChangedEvent<T>
Propagated if List changes
M4DService
Base for all Service-Classes [...]
MaterialApplication
Basis for your Application [...]
MaterialAttribute
Checks the given condition and adds the given attribute to the components element. Format: ! : '' [...]
MaterialClass
Checks the given condition and adds the given class-name to the components element. Format: ! : '' [...]
MaterialModel
Usage (HTML): [...]
MdlAnnotation
Mustache (+mirrors) needs to know which classes to include
MdlComponent
MdlComponentHandler
A component handler interface using the revealing module design pattern. More details on this pattern design here: https://github.com/jasonmayes/mdl-component-design-pattern (JS-Version: Jason Mayes.) [...]
MdlConfig<T extends MdlComponent>
MdlDataConsumer
MdlEventListener
Mixin to cleanup StreamSubscriptions for MdlComponents and MaterialDialogs [...]
MdlPublicFunctionAnnotation
Helper for Transformer to generate documentation
MdlWidgetConfig<T extends MdlComponent>
Helps to decide what is a real Widget and what is just a helper. MaterialRipple would be such a "helper" [...]
ModelObserver
ModelObserverFactory
ObservableList<T>
List that sends ListChangeEvents to the listener if this list changes Supported methods: Add, insert, update ([]), remove, clear, removeAll [...]
ObservableProperty<T>
PropertyChangeEvent<T>
RefreshableComponent
MdlComponent that has a "refresh" Functions. Best way to invoke this function is via refreshComponentsInSubtree [...]
ToJson
Marker for all objects that can be serialized to Json
ToJsonEvent<T extends ToJson>
Creates a JSON-Map [...]
UpdateView
Stock-Action that is emitted by the Dispatcher.emitChange-Function

Constants

Component → const MdlAnnotation
All MDLComponents
const MdlAnnotation()
Directive → const MdlAnnotation
Directives like Formatter
const MdlAnnotation()
MDL_COMPONENT_PROPERTY → const String
Property for the Components JsObject to save/register the component
"mdlcomponent"
MdlComponentModel → const MdlAnnotation
Helps dryice to know which vars are available to render [...]
const MdlAnnotation()
Model → const MdlAnnotation
Usually used for Templates
const MdlAnnotation()
public → const MdlPublicFunctionAnnotation
UpdateViewAction → const UpdateView
const UpdateView()

Functions

componentFactory() MdlComponentHandler
componentHandler() MdlComponentHandler
getAllMdlComponents(HtmlElement element) → List<MdlComponent>
Returns all MdlComponents in subtree
isMdlComponent(HtmlElement element, [ Type type ]) → bool
Checks if element is a "MDLComponent" type is optional - if given a stricter check is made
isMdlWidget(HtmlElement element) → bool
Checks if element is a "Widget" (usually this means a UI-Element) MdlConfig.isWidget...
mdlComponent(HtmlElement element, Type type, { bool showWarning: true }) MdlComponent
element The element where a MDL-Component is registered [...]
mdlComponentNames(HtmlElement element) → List<String>
Gives you all the component names registered for this element
mdlComponents(HtmlElement element) → List<MdlComponent>
Returns all the MDL-Components registered for this element
refreshComponentsInSubtree(HtmlElement element) → void
registerMaterialAttribute() → void
registration-Helper
registerMaterialClass() → void
registration-Helper
registerMaterialModel() → void
registration-Helper
registerMdlDirectiveComponents() → void
splitConditions(String conditionToSplit) → Map<String, String>
Splits conditionToSplit into varnames and classnames. Format: : '', : '' ...

Enums

ActionType
Gives you more infos about the action you receive [...]
ListChangeType
RegistrationPriority
SelectorType

Typedefs

FormatObservedValue<T>(T value, dynamic original, { String format }) → String
MdlCallback(HtmlElement element) → void
MdlComponentFactory(HtmlElement element, Container iocContainer) MdlComponent
ModelObserverBuilder(MdlComponent component) ModelObserver
ResetObserver<T>() → T
StaticCast<T>(dynamic value) → T
UpdateItem<T>(HtmlElement element, T item) → bool

Exceptions / Errors

MultipleWidgetException
Thrown if you try to register more than one widget per element Multiple components per element are allowed but not multiple widgets!
WrongComponentTypeException