Name

floatinglist — a floatinglist appears above other components

Synopsis

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

Description

The floatinglist tag provides a list that floats on top of the canvas. It includes an attachment API for popping-up relative to a target. This attachment API guarantees visibility on the canvas, such that if the floatinglist intersects the canvas bounds, the attach location will change to a more visible location.

<canvas height="100">
              <button x="10" y="10" text="owner">
              <floatinglist width="80" attach="right">
              <textlistitem text="one"/>
              <textlistitem text="two"/>
              </floatinglist>
              </button>
              </canvas>
A list which floats above other components on the canvas. The floatinglist may be attached to a view, in which case the attachlocation attribute may be used to specify where the attachment occurs.

Superclass Chain

node (LzNode) » view (LzView) » basecomponent » basevaluecomponent » baseformitem » baselist » list » basefloatinglist » floatinglist

Known Subclasses

Details

Properties (4)

border_bottom
<attribute name="border_bottom" value="${this._currentattachy == 'bottom' ? 0:this.bordersize}" />
public var border_bottom;
The size of the bottom border which defaults to bordersize.
border_top
<attribute name="border_top" value="${this._currentattachy == 'top' ? 0:this.bordersize}" />
public var border_top;
shadowcrn
<attribute name="shadowcrn" value="0" />
private var shadowcrn;
shadowoffsety
<attribute name="shadowoffsety" value="${this._currentattachy == 'bottom' ? 3:-9}" />
private var shadowoffsety;
The shadow offset in the y coordinate space.

Methods (4)

_applystyle()
<method name="_applystyle" args="s" />
private function _applystyle(s);
getMenuCapHeight()
<method name="getMenuCapHeight" />
private function getMenuCapHeight();
init()
<method name="init" />
private function init();
setBGColor()
<method name="setBGColor" args="c" />
private function setBGColor(c);

LZX Synopsis

<class name="lz.floatinglist" extends=" lz.basefloatinglist ">
  <attribute name=" border_bottom " value="${this._currentattachy == 'bottom' ? 0:this.bordersize}" />
  <attribute name=" border_top " value="${this._currentattachy == 'top' ? 0:this.bordersize}" />
  <attribute name=" shadowcrn " value="0" />
  <attribute name=" shadowoffsety " value="${this._currentattachy == 'bottom' ? 3:-9}" />
  <method name=" _applystyle " args="s" />
  <method name=" getMenuCapHeight " />
  <method name=" init " />
  <method name=" setBGColor " args="c" />
</class>

JavaScript Synopsis

public lz.floatinglist extends  lz.basefloatinglist  {
  public var border_bottom ;
  public var border_top ;
  private var shadowcrn ;
  private var shadowoffsety ;
  prototype private function _applystyle (s);
  prototype private function getMenuCapHeight ();
  prototype private function init ();
  prototype private function setBGColor (c);
}