<simpledefaultlist>

JavaScript: lz.simpledefaultlist
A list class that handles a default value. Input and output for the list is defined to be in this format: Currently only works with dataoption="lazy" or "pooling"

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
autoselectdefault expression any true read/write
  Set to true if the default item should be selected whenever data is received
defaultitem expression any null read/write
  LzDataElement of the default node null means the list has no default

Attributes inherited from <basevaluecomponent>

type, value

Methods

findDefault()
simpledefaultlist.findDefault();
Searches through the data to find a default item. Called when data is read into the list @returns: lzDataElement default: dataelement for default

handleDataChange()
simpledefaultlist.handleDataChange();
keywords @private

modify()
simpledefaultlist.modify(node);
Should be called when an item has been modified.
Parameter Name Type Description
node    

rollback()
simpledefaultlist.rollback();

selectByData()
simpledefaultlist.selectByData(data : lz.DataElement);
Selects an item based on a dataelement
Parameter Name Type Description
data lz.DataElement node to select

selectDefault()
simpledefaultlist.selectDefault();
Selects the default item

setDefault()
simpledefaultlist.setDefault(item : view);
Sets default item
Parameter Name Type Description
item view list item to make default

setDefaultByData()
simpledefaultlist.setDefaultByData(item : lz.DataElement);
Sets default item
Parameter Name Type Description
item lz.DataElement node to make default

toXML()
simpledefaultlist.toXML();
Returns an XML representation of the data in the list format:

Methods inherited from <list>

addItem, ensureItemInView, select

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <baselist>

onitemclassname, onselect

Events inherited from <baseformitem>

onchanged, onvalue

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy