m4d_components library

Classes

ChooseFormatter
Choose between two Text options. ChooseFormatter must be registered in mdlformatter.Formatter Sample:
CoreComponentsModule
DataAttribute
Helper for requesting a proper value from the components HTML-Element [...]
DataTableChangedEvent
DataTableRowClickedEvent
If user clicks on a row this Event will be triggered
DecoratorFormatter
Just for Testing
DomRenderer
DomRenderer converts a String into HtmlNodes
ElementProperties
FallbackFormatter
Helper-Class to get the right MaterialFormatter if a MdlComponent could have registered more than one MaterialFormatter [...]
Formatter
Base-Class for all Formatters
FormatterModule
Registers the necessary Objects [...]
FormatterPipeline
Takes the return value of the first command as input for the next command - works like "unix pipes" Basis is a HTML-Statement like this: [...]
Formatters
Formatter ist a collection of formatters. [...]
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
ListChangedEvent<T>
Propagated if List changes
LowerCaseFormatter
Converts input to lowercase. [...]
M4DService
Base for all Service-Classes [...]
MaterialAccordion
Sample: [...]
MaterialApplication
Basis for your Application [...]
MaterialBadge
Controller-View for
MaterialButton
Controller-View for [...]
MaterialCheckbox
Controller-View for [...]
MaterialDataTable
MaterialDivDataTable
Controller for
MaterialDivDataTableRow
Controller for [...]
MaterialDummyFormatter
Created if a MaterialComponent has no MaterialFormatter registered but asks for one [...]
MaterialFormatter
Controller for [...]
MaterialIconToggle
Controller-View for [...]
MaterialLabelfield
Controller-View for [...]
MaterialLayout
Controller-View for
MaterialLayoutTab
Individual Tab
MaterialMenu
Controller-View for [...]
MaterialProgress
Controller-View for
MaterialProgressVertical
Controller-View for
MaterialRadio
Controller-View for [...]
MaterialRadioGroup
MaterialRadioGroupChangedEvent
Fired by MaterialRadioGroup on childChanged
MaterialRipple
MaterialSlider
MaterialSpinner
MaterialSwitch
Controller-View for [...]
MaterialTabs
Controller-View for mdl-tabs [...]
MaterialTabsChangedEvent
MaterialTextfield
Controller-View for [...]
MaterialTooltip
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" [...]
NumberFormatter
Formats a number with a certain number of digits [...]
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 [...]
UpperCaseFormatter
Converts input to uppercase [...]

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

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...
materialAccordionConfig() MdlConfig<MdlComponent>
creates MdlConfig for MaterialAccordion
materialCheckboxConfig() MdlConfig<MdlComponent>
creates MdlConfig for MaterialCheckbox
materialIconToggleConfig() MdlConfig<MdlComponent>
creates MdlConfig for MaterialIconToggle
materialLayoutConfig() MdlConfig<MdlComponent>
creates MdlConfig for MaterialLayout
materialMenuConfig() MdlConfig<MdlComponent>
creates MdlConfig for MaterialMenu
materialProgressConfig() MdlConfig<MdlComponent>
creates MdlConfig for MaterialProgress
materialProgressVerticalConfig() MdlConfig<MdlComponent>
creates MdlConfig for MaterialProgressVertical
materialRadioConfig() MdlConfig<MdlComponent>
creates MdlConfig for MaterialRadio
materialRadioGroupConfig() MdlConfig<MdlComponent>
creates MdlConfig for MaterialRadio
materialRippleConfig() MdlConfig<MdlComponent>
creates MdlConfig for MaterialRipple Important!!!! Ripple uses MdlConfig and not MdlWidgetConfig
materialSliderConfig() MdlConfig<MdlComponent>
creates MdlConfig for MaterialSlider
materialSpinnerConfig() MdlConfig<MdlComponent>
creates MdlConfig for MaterialSpinner
materialSwitchConfig() MdlConfig<MdlComponent>
creates MdlConfig for MaterialSwitch
materialTabsConfig() MdlConfig<MdlComponent>
creates MdlConfig for MaterialTabs
materialTextfieldConfig() MdlConfig<MdlComponent>
creates MdlConfig for MaterialTextfield
materialTooltipConfig() MdlConfig<MdlComponent>
creates MdlConfig for MaterialTooltip
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
registerMaterialAccordion() → void
registration-Helper
registerMaterialBadge() → void
Registers the MaterialBadge-Component [...]
registerMaterialButton() → void
Registers the MaterialButton-Component [...]
registerMaterialCheckbox() → void
registration-Helper
registerMaterialDataTable() → void
registration-Helper
registerMaterialDivDataTable() → void
registration-Helper
registerMaterialFormatter() → void
Registers the MaterialFormatter-Component [...]
registerMaterialIconToggle() → void
registration-Helper
registerMaterialLabelfield() → void
Registers the MaterialLabelfield-Component [...]
registerMaterialLayout() → void
registration-Helper
registerMaterialMenu() → void
registration-Helper
registerMaterialProgress() → void
registration-Helper
registerMaterialProgressVertical() → void
registration-Helper
registerMaterialRadio() → void
registration-Helper
registerMaterialRadioGroup() → void
registration-Helper
registerMaterialRipple() → void
registration-Helper
registerMaterialSlider() → void
registration-Helper
registerMaterialSpinner() → void
registration-Helper
registerMaterialSwitch() → void
registration-Helper
registerMaterialTabs() → void
registration-Helper
registerMaterialTextfield() → void
registration-Helper
registerMaterialTooltip() → void
registration-Helper
registerMdlComponents() → void

Enums

ListChangeType
RegistrationPriority
SelectorType

Typedefs

FormatObservedValue<T>(T value, dynamic original, { String format }) → String
MdlCallback(HtmlElement element) → void
MdlComponentFactory(HtmlElement element, Container iocContainer) MdlComponent
PipeCommand(dynamic val) → dynamic
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