spa library

Classes

BaseRouter
Component
The basic building block of the whole application. Component, is a basic and abstract class, used to define a set of HTML elements to be rendered on screen. For example, to create a button, with image icon, you will create a
ComponentRouter
DocumentComponent
The main component. DocumentComponent has access to HtmlDocument.
HttpUtil
HttpUtilResponse
ListRenderer<T, C extends RenderComponent>
RenderComponent
Route
StringComponent
A subclass of Component designed to be rendered through other RenderComponent using string interpolation.
StringComponentList<T extends StringComponent>
A list of StringComponent. The only difference with normal List is the toString function, which will return all the components string representation concatenated together. This is useful to create a list of HTML elements for example.
Waypoint
Waypoint is a new library implemented to detect if an element is displayed on screen. Waypoint works by continuously checking whether an element is displayed on screen by tracking its position relative to a viewport. The name waypoint came from the same jQuery waypoint functionality.

Mixins

MEventHandler
Event handler capability for derivative of Component.
MJson

Typedefs

AfterRenderFunc = Future Function()
AfterUnrenderFunc = Future Function()
BeforeRenderFunc = Future<bool> Function()
BeforeUnrenderFunc = Future<bool> Function()
ComponentRouterHandleFunc = Route Function(Map<String, String> urlParams, Map<String, String> queryParams)
OnClickFunc = void Function(MouseEvent event)
OnProgressFunc = void Function(int? loaded, int? total)
WaypointHandler = void Function()