[Laszlo-checkins] r9035 - openlaszlo/trunk/lps/components/lz
lou@openlaszlo.org
lou at openlaszlo.org
Wed May 7 14:53:45 PDT 2008
Author: lou
Date: 2008-05-07 14:53:22 -0700 (Wed, 07 May 2008)
New Revision: 9035
Modified:
openlaszlo/trunk/lps/components/lz/alert.lzx
Log:
Change 20080507-lou-o by lou at loumac.local on 2008-05-07 17:46:40 AST
in /Users/lou/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: fix alert reference page intro paragraphs and code examples
Bugs Fixed: LPP-4986
Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)
Details: replace incorrect intro paragraphs and code examples with those from 3.4
Tests: visual verify
Modified: openlaszlo/trunk/lps/components/lz/alert.lzx
===================================================================
--- openlaszlo/trunk/lps/components/lz/alert.lzx 2008-05-07 21:50:23 UTC (rev 9034)
+++ openlaszlo/trunk/lps/components/lz/alert.lzx 2008-05-07 21:53:22 UTC (rev 9035)
@@ -97,47 +97,25 @@
</view>
<doc>
<tag name="shortdesc"><text>
- A window.
+ A simple alert.
</text></tag>
<text>
-
- <p>The <tagname>window</tagname> tag creates a floating view that may
- be moved and optionally resized by the user. Set the
- <attribute>closeable</attribute> attribute to <code>true</code> in
- order to show a window close button.</p>
-
+ <p>A simple subclass of <tagname>modaldialog</tagname>, <tagname>alert</tagname> provides a modal alert box that displays its text attribute (or content) and an OK button. (If you need to display more than text in an alert, use <tagname>modaldialog</tagname> itself).</p>
<example>
- <canvas height="250">
- <window x="10" y="10" width="300" height="200"
- title="my window"
- resizable="true" closeable="true">
- <text>Hello</text>
- </window>
- </canvas>
+ <canvas height="140">
+ <alert name="myalert">
+ Danger! Danger, Will Robinson!
+ </alert>
+
+ <button onclick="canvas.myalert.open()">Show Alert</button>
+ </canvas>
</example>
- <p>Views placed within a <tagname>window</tagname> tag will be placed
- inside the smaller content area within the window. Because of this,
- you will often want to constrain to the dimensions of the content
- area, rather than to the window dimensions. To do this, tags placed
- within a window can use the <field>immediateparent</field> property
- rather than the <field>parent</field> property.</p>
+<p><b>See also:</b></p>
+ <ul>
+ <li><p><a href="lz.modaldialog.html"><tagname>modaldialog</tagname></a></p></li>
+ </ul>
- <example title="Sizing to the content area">
- <canvas height="150">
- <window x="10" y="10" width="200" height="100"
- resizable="true">
- <button width="${immediateparent.width}"
- height="${immediateparent.height}">
- This is a really big button
- </button>
- </window>
- </canvas>
- </example>
-
- <seealso>
- <tags>modaldialog alert</tags>
- </seealso>
</text>
</doc>
More information about the Laszlo-checkins
mailing list