History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-3930
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: -- --
Assignee: Unassigned
Reporter: John Sundman
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

peculiarities of text as attribute and text as tag

Created: 01/May/07 09:25 AM   Updated: 13/Jun/08 01:42 PM
Component/s: Documentation
Affects Version/s: 4.0.0
Fix Version/s: RingDingDoc (4.1 DevGuide)

Time Tracking:
Not Specified

Severity: Minor
Fixed in Change#: 5,236
Fixed in branch: branches/legals
Runtime: N/A
Fix in hand: False


 Description  « Hide
I think (I hope) this is covered, but need to go back and make sure. Explain what's going on in these four versions of "SpecialButton":

<canvas width="500" height="80">
  <class name="SpecialButton" extends="button" onclick="changeLabel()">
    <method name="changeLabel">
      this.setAttribute('text', 'Clicked! ');
    </method>
  </class>
  <simplelayout/>

  <SpecialButton>
    not clicked
  </SpecialButton>

    <SpecialButton text="not clicked"/>

  <SpecialButton>
     <text >not clicked</text>
  </SpecialButton>

  <SpecialButton>
     <text text="not clicked"/>
  </SpecialButton>



</canvas>

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
John Sundman - 26/May/07 09:25 AM
I wrote a new section explaining the difference between the text attribute and the lz.text object, which *has* a text attribute.

Matt Wilde - 13/Jun/08 01:42 PM
This has been clarified.