Class LLayout
Object
|
+--Lens
|
+--LLayout
- class
LLayout
- extends Lens
A simple lens for laying properties out in the DOM while also inserting
constant, structural data.
Composes LWmap, chains of LAdd, and LOrder.
It takes arguments prop1, act1, prop2, act2, ..., [default_to_id],
where propi is a valid JavaScript property name and acti is
either a lens or a DOM-displayable value.
The call to LOrder comes from the order of the properties; the
last lens in the composition is new LOrder(prop1, prop2, ...).
The call to LWmap comes from the properties and lens actions; it
is the first call of the composition, new LWmap(propl1, actl1, ...,
default_to_id), where propl/actli are the properties and
actions where the action is a lens, and default_to_id is the final argument
(which defaults to false).
The calls to LAdd come from the remaining properties; each
property/action pair is called new LAdd(propni, actni) and
LSeqed together.
TODO it should be possible to give 'false' or 'undefined' as the property
for non-lens actions, but that means generating non-clashing names.
Defined in lens.js
|
Field Summary |
Object |
name
|
name
Object name
LLayout
LLayout()
Documentation generated by
JSDoc on Wed Feb 14 15:36:01 2007