<replicator>

JavaScript: lz.replicator
extends <node> » lz.Eventable »
This is a declared replicator for visual elements. Unlike OpenLaszlo''s data-replication feature, a replicator can take an arbitrary node set that may be passed in as an array. Non-replicating elements may be used inside a replicator; only the last child inside the replicator is replicated. The data attribute of the replicated (cloned) view is set by the setData method with data from the nodes array when the clone is bound.

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
axis string String y read/write
  The axis in which to replicate
_clonepool expression any null read/write
   
_cloneprops expression any null read/write
  Array of maps of additional properties by clone number
clones expression any null read/write
  The list of elements controlled by this repliator
container expression any   read/write
  The view that will contain the replicated nodes. Defaults to the immediateparent of the replicator.
dataset expression any   read/write
  Compute nodes from this dataset
mask expression any   read/write
  The view that will clip the replicated nodes. Defaults to the immediateparent of the container
nodes expression any null read/write
  The list of nodes over which this replictor acts
pool boolean boolean true read/write
  If true, then instances of the replicated instance are reused when possible
replicatedsize expression any null read/write
  The size (width or height) in the replication axis of the view being replicated. Assumes all subviews have same replicated size.
_sizes expression any { x : 'width', y: 'height' } read/write
   
spacing expression any 0 read/write
  A pixel amount to use between each replicated view
xpath string String   read/write
  Compute nodes from this xpath query against the specified dataset

Methods

__adjustVisibleClones()
replicator.__adjustVisibleClones(ignore);
Parameter Name Type Description
ignore    

bind()
replicator.bind(v, n);
Parameter Name Type Description
v    
n    

construct()
replicator.construct(p, a);
Parameter Name Type Description
p    
a    

createChildren()
replicator.createChildren(c);
Parameter Name Type Description
c    

destroy()
replicator.destroy();

ensureInView()
replicator.ensureInView(n);
Parameter Name Type Description
n    

getClone()
replicator.getClone();

getCloneForNode()
replicator.getCloneForNode(datanode, dontmake);
Parameter Name Type Description
datanode    
dontmake    

getCloneForOffset()
replicator.getCloneForOffset(n);
Parameter Name Type Description
n    

getCloneIfVisible()
replicator.getCloneIfVisible(n);
Parameter Name Type Description
n    

init()
replicator.init();

insertNode()
replicator.insertNode(idx, n);
Parameter Name Type Description
idx    
n    

_makeClone()
replicator._makeClone();

poolClone()
replicator.poolClone(c);
Parameter Name Type Description
c    

setCloneProperty()
replicator.setCloneProperty(v, prop, val);
Parameter Name Type Description
v    
prop    
val    

setClonePropertyByCN()
replicator.setClonePropertyByCN(n, prop, val);
Parameter Name Type Description
n    
prop    
val    

setData()
replicator.setData(v:*, n);
Parameter Name Type Description
v:*    
n    

setNodes()
replicator.setNodes(n);
Parameter Name Type Description
n    

set_nodes()
replicator.set_nodes(n);
Parameter Name Type Description
n    

unbind()
replicator.unbind(v);
Parameter Name Type Description
v    

update()
replicator.update(v, n);
Parameter Name Type Description
v    
n    

_updateChildren()
replicator._updateChildren(ignore);
Parameter Name Type Description
ignore    

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Name Description
onnodes  

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy