custom-components-$1.lzx

<canvas debug="true" height="260" width="100%">
  <debug height="250" y="20"/>
  <include href="base/basevaluecomponent.lzx"/>
  
  <class name="myvaluecomponent" extends="basevaluecomponent">
    <handler name="oninit">
      Debug.debug("%w text: %w", this.name, this.text);
      Debug.debug("%w value: %w", this.name, this.value);
      Debug.debug("%w getValue(): %w\n", this.name, this.getValue());
    </handler>
  </class>
  
  <!-- Text is inherited from basecomponent, the superclass of -->
  <!-- basevalue component.                                    -->
  <myvaluecomponent name="one" text="this is the text"/>
  
  <!-- Set the value this time. Note that value is an expression type. -->
  <!-- Have to use quotes to set a string value.                       -->
  <myvaluecomponent name="two" value="'this is the value'"/>
  
  <!-- Set both text and value. -->
  <myvaluecomponent name="three" text="this is the text" value="'this is the value'"/>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
* Copyright 2007, 2008 Laszlo Systems, Inc.  All Rights Reserved.             *
* Use is subject to license terms.                                            *
* X_LZ_COPYRIGHT_END ****************************************************** -->

Cross References

Includes

Classes

Named Instances