Name

tooltip

Synopsis

LZX: tooltip
JavaScript: tooltip
Type: Class
Access: public
Topic: Incubator.Tooltip
Declared in: lps/components/incubator/tooltip/tooltip.lzx

Description

This class allows you to show a floating "tooltip" on any view. To use it you make it a child of a view. The parent view has to be clickable for the tooltip to work. Setting clickable to false will disable the tooltip. For example:
        <button text="OK">
            <tooltip>This is a tip.</tooltip>
        </button>
    
The appearance of the tooltip is determined by a view on the canvas which must be named "tooltipview" and have a setText method and options="ignorelayout"

Superclass Chain

node (LzNode) » tooltip

Known Subclasses

Details

Properties (3)

p_yoffset
<attribute name="p_yoffset" value="15" />
public var p_yoffset;
offset of tooltip from parent view
text
<attribute name="text" type="text" />
public var text : String;
text that appears in the tooltip. null or empty string means tooltip will not show.
tipalign
<attribute name="tipalign" type="string" value="" />
public var tipalign : String;
values = "'right',''" attribute to align a tooltip 'right' so that it's right edge is flush with it's parent's right edge ( minus 10 pixel inset ).

LZX Synopsis

<class name="tooltip" extends=" LzNode ">
  <attribute name=" p_yoffset " value="15" />
  <attribute name=" text " type="text" />
  <attribute name=" tipalign " type="string" value="" />
</class>

JavaScript Synopsis

public tooltip extends  LzNode  {
  public var p_yoffset ;
  public var text  : String;
  public var tipalign  : String;
}