<docbook><section><title>OATDOCdialog</title><para> </para>
<title> dialog.js</title> dialog.js
<para>Simple wrapper for OK/Cancel dialog, that can contain any data.</para>
<bridgehead class="http://www.w3.org/1999/xhtml:h2"> Objects</bridgehead>
<bridgehead class="http://www.w3.org/1999/xhtml:h3"> OAT.Dialog(title, contentDiv, optObj)</bridgehead>
<para>Creates a dialog window with title of <computeroutput>title</computeroutput>, puts <computeroutput>contentDiv</computeroutput> into it.
 Various options specify its appearance and behavior: </para>
<itemizedlist mark="bullet" spacing="compact"><listitem><computeroutput> <emphasis>width</emphasis></computeroutput> - in pixels,0 = auto </listitem>
<listitem><computeroutput> <emphasis>height</emphasis></computeroutput> - in pixels, 0 = auto </listitem>
<listitem><computeroutput> <emphasis>modal</emphasis></computeroutput> - 1/0 </listitem>
<listitem><computeroutput> <emphasis>zIndex</emphasis></computeroutput> - default 1000 </listitem>
<listitem><computeroutput> <emphasis>onshow</emphasis></computeroutput> - callback to be performed when dialog is shown </listitem>
<listitem><computeroutput> <emphasis>onhide</emphasis></computeroutput> - callback to be performed when dialog is hidden </listitem>
<listitem><computeroutput> <emphasis>buttons</emphasis></computeroutput> - 1/0, whether to show OK/Cancel buttons</listitem>
</itemizedlist><bridgehead class="http://www.w3.org/1999/xhtml:h2"> Methods</bridgehead>
<bridgehead class="http://www.w3.org/1999/xhtml:h3"> OAT.Dialog::show()</bridgehead>
<para>Shows the dialog.</para>
<bridgehead class="http://www.w3.org/1999/xhtml:h3"> OAT.Dialog::hide()</bridgehead>
<para>Hides the dialog.</para>
<bridgehead class="http://www.w3.org/1999/xhtml:h2"> Properties</bridgehead>
<bridgehead class="http://www.w3.org/1999/xhtml:h3"> OAT.Dialog::ok</bridgehead>
<para>Callback to be performed when user clicks &#39;OK&#39; button.</para>
<bridgehead class="http://www.w3.org/1999/xhtml:h3"> OAT.Dialog::cancel</bridgehead>
<para>Callback to be performed when user clicks &#39;Cancel&#39; button.</para>
<bridgehead class="http://www.w3.org/1999/xhtml:h2"> Example</bridgehead>
<programlisting>var d = new OAT.Dialog(&quot;dialog&quot;, div, {modal:1, buttons:1});
d.show();
</programlisting><para> <ulink url="CategoryDocumentation">CategoryDocumentation</ulink> <ulink url="CategoryOAT">CategoryOAT</ulink> <ulink url="CategoryOpenSource">CategoryOpenSource</ulink></para>
</section></docbook>