Welcome to the API documentation of the maquette library.
These are valid values for the children parameter of the h function.
h function is used to create a virtual DOM node.
This function is largely inspired by the mercuryjs and mithril frameworks.
h stands for (virtual) hyperscript.
All possible method signatures of this function can be found in the H 'interface'.
NOTE: There are three basic rules you should be aware of when updating the virtual DOM.
The type of the value that is cached.
The type of source items. A database-record for instance.
The type of target items. A Component for instance.
function(source) that must return a key to identify each source object. The result must either be a string or a number.
function(source, index) that must create a new result object from a given source. This function is identical
callback argument in
function(source, target, index) that updates a result to an updated source.
Contains simple low-level utility functions to manipulate the real DOM.
Merges a new DOM node which is generated from a VNode with an existing DOM Node. This means that the virtual DOM and the real DOM will have one overlapping element. Therefore the selector for the root VNode will be ignored, but its properties and children will be applied to the Element provided. This is a low-level method. Users wil typically use a Projector instead.
The existing element to adopt as the root of the new virtual DOM. Existing attributes and childnodes are preserved.
The Projection that was created.
Generated using TypeDoc