Name

listitem — a listitem is an element of a list

Synopsis

LZX: listitem
JavaScript: lz.listitem
Type: Class
Access: public
Topic: Components.Laszlo Components
Declared in: lps/components/lz/listitem.lzx

Description

A listitem is an element with a value that is contained within a list. As with baselistitem, the selected attribute will be true when selected.

<canvas height="80">
              <list>
              <listitem value="1" selected="true"/>
              <listitem value="2"/>
              </list>
              </canvas>
A simple listitem that is usually declared inside of a list.

Superclass Chain

node (LzNode) » view (LzView) » basecomponent » basevaluecomponent » baselistitem » listitem

Known Subclasses

Details

Properties (4)

height
<attribute name="height" value="20" />
public var height;
The height of the listitem.
hilited
<attribute name="hilited" value="false" />
private var hilited;
_ipclassroot
<attribute name="_ipclassroot" value="$once{immediateparent.classroot}" />
private var _ipclassroot;
_selectonevent
<attribute name="_selectonevent" value="onmousetrackup" />
private var _selectonevent;
This is a protected attribute of baselistitem and the default value of onClick is replaced with onmousetrackup so that the parent.select() function is not called twice.

Methods (4)

_applystyle()
<method name="_applystyle" args="s" />
private function _applystyle(s);
setHilite()
<method name="setHilite" args="ishilited" />
private function setHilite(ishilited);
setSelected()
<method name="setSelected" args="isSelected" />
private function setSelected(isSelected);
_showEnabled()
<method name="_showEnabled" />
private function _showEnabled();

LZX Synopsis

<class name="lz.listitem" extends=" lz.baselistitem ">
  <attribute name=" height " value="20" />
  <attribute name=" hilited " value="false" />
  <attribute name=" _ipclassroot " value="$once{immediateparent.classroot}" />
  <attribute name=" _selectonevent " value="onmousetrackup" />
  <method name=" _applystyle " args="s" />
  <method name=" setHilite " args="ishilited" />
  <method name=" setSelected " args="isSelected" />
  <method name=" _showEnabled " />
</class>

JavaScript Synopsis

public lz.listitem extends  lz.baselistitem  {
  public var height ;
  private var hilited ;
  private var _ipclassroot ;
  private var _selectonevent ;
  prototype private function _applystyle (s);
  prototype private function setHilite (ishilited);
  prototype private function setSelected (isSelected);
  prototype private function _showEnabled ();
}