Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Made hide and show options into includes.

  • Loading branch information...
commit 8d47e087470f690af28333e178758204ab0c3ed1 1 parent 31380f1
@scottgonzalez scottgonzalez authored
View
52 entries/jQuery.widget.xml
@@ -87,59 +87,13 @@
</longdesc>
<category slug="utilities"/>
</entry>
- <entry type="widget" name="jQuery.Widget">
+ <entry type="widget" name="jQuery.Widget" animated-element="element">
<title>Base Widget</title>
<desc>The base widget used by the widget factory.</desc>
<options>
<xi:include href="../includes/widget-option-disabled.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
- <option name="hide" default="null">
- <desc>If and how to animate the hiding of an element.</desc>
- <type name="Boolean">
- <desc>
- When set to <code>false</code>, no animation will be used and the element will be hidden immediately.
- When set to <code>true</code>, the element will fade out with the default duration and the default easing.
- </desc>
- </type>
- <type name="Number">
- <desc>
- The element will fade out with the specified duration and the default easing.
- </desc>
- </type>
- <type name="String">
- <desc>
- The element will be hidden using the specified effect.
- The value can either be the name of a built-in jQuery animateion method, such as <code>"slideUp"</code>, or the name of a jQuery UI effect, such as <code>"fold"</code>.
- In either case the effect will be used with the default duration and the default easing.
- </desc>
- </type>
- <type name="Object">
- <desc>If the value is an object, then <code>effect</code>, <code>duration</code>, and <code>easing</code> properties may be provided. If the <code>effect</code> property contains the name of a jQuery method, then that method will be used; otherwise it is assumed to be the name of a jQuery UI effect. When using a jQuery UI effect that supports additional settings, you may include those settings in the object and they will be passed to the effect. If <code>duration</code> or <code>easing</code> is omitted, then the default values will be used. If <code>effect</code> is omitted, then <code>"fadeOut"</code> will be used.</desc>
- </type>
- </option>
- <option name="show" default="null">
- <desc>If and how to animate the showing of an element.</desc>
- <type name="Boolean">
- <desc>
- When set to <code>false</code>, no animation will be used and the element will be shown immediately.
- When set to <code>true</code>, the element will fade in with the default duration and the default easing.
- </desc>
- </type>
- <type name="Number">
- <desc>
- The element will fade in with the specified duration and the default easing.
- </desc>
- </type>
- <type name="String">
- <desc>
- The element will be shown using the specified effect.
- The value can either be the name of a built-in jQuery animateion method, such as <code>"slideDown"</code>, or the name of a jQuery UI effect, such as <code>"fold"</code>.
- In either case the effect will be used with the default duration and the default easing.
- </desc>
- </type>
- <type name="Object">
- <desc>If the value is an object, then <code>effect</code>, <code>duration</code>, and <code>easing</code> properties may be provided. If the <code>effect</code> property contains the name of a jQuery method, then that method will be used; otherwise it is assumed to be the name of a jQuery UI effect. When using a jQuery UI effect that supports additional settings, you may include those settings in the object and they will be passed to the effect. If <code>duration</code> or <code>easing</code> is omitted, then the default values will be used. If <code>effect</code> is omitted, then <code>"fadeIn"</code> will be used.</desc>
- </type>
- </option>
+ <xi:include href="../includes/widget-option-hide.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
+ <xi:include href="../includes/widget-option-show.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
</options>
<methods>
<xi:include href="../includes/widget-method-destroy.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
View
14 entries/tabs.xml
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
-<entry name="tabs" type="widget">
+<entry name="tabs" type="widget" animated-element="panel">
<title>Tabs Widget</title>
<desc>A single content area with multiple panels, each associated with a header in a list.</desc>
<longdesc>
@@ -42,16 +42,8 @@
</desc>
<type name="String" />
</option>
- <option name="hide" default="true">
- <desc>How to hide a panel.</desc>
- <type name="Boolean" />
- <type name="Object" />
- </option>
- <option name="show" default="true">
- <desc>How to show a panel.</desc>
- <type name="Boolean" />
- <type name="Object" />
- </option>
+ <xi:include href="../includes/widget-option-hide.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
+ <xi:include href="../includes/widget-option-show.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
</options>
<events>
<event name="activate" type="accordionactivate">
View
14 entries/tooltip.xml
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
-<entry name="tooltip" type="widget">
+<entry name="tooltip" type="widget" animated-element="tooltip">
<title>Tooltip Widget</title>
<desc>Customizable, themeable tooltips, replacing native tooltips.</desc>
<longdesc>
@@ -26,11 +26,7 @@
<type name="Function" />
</option>
<xi:include href="../includes/widget-option-disabled.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
- <option name="hide" default="true">
- <desc>How to hide the tooltip.</desc>
- <type name="Boolean" />
- <type name="Object" />
- </option>
+ <xi:include href="../includes/widget-option-hide.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
<option name="items" default="[title]">
<desc>
A selector indicating which items should show tooltips. Customize if you're using something other then the title attribute for the tooltip content, or if you need a different selector for event delegation.
@@ -43,11 +39,7 @@
<desc>Configuration for the Position utility. The <code>of</code> property defaults to the target element, but can also be overriden.</desc>
<type name="Object" />
</option>
- <option name="show" default="true">
- <desc>How to show the tooltip.</desc>
- <type name="Boolean" />
- <type name="Object" />
- </option>
+ <xi:include href="../includes/widget-option-show.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
<option name="tooltipClass" default="null">
<desc>
A class to add to the widget, can be used to display various tooltip types, like warnings or errors.
View
2  entries2html-base.xsl
@@ -332,7 +332,7 @@
<li>
<strong><xsl:value-of select="../@name"/></strong>
<xsl:text>: </xsl:text>
- <xsl:copy-of select="node()"/>
+ <xsl:apply-templates select="."/>
</li>
</xsl:for-each>
</ul>
View
25 includes/widget-option-hide.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<option name="hide" default="null">
+ <desc>If and how to animate the hiding of the <placeholder name="animated-element"/>.</desc>
+ <type name="Boolean">
+ <desc>
+ When set to <code>false</code>, no animation will be used and the <placeholder name="animated-element"/> will be hidden immediately.
+ When set to <code>true</code>, the <placeholder name="animated-element"/> will fade out with the default duration and the default easing.
+ </desc>
+ </type>
+ <type name="Number">
+ <desc>
+ The <placeholder name="animated-element"/> will fade out with the specified duration and the default easing.
+ </desc>
+ </type>
+ <type name="String">
+ <desc>
+ The <placeholder name="animated-element"/> will be hidden using the specified effect.
+ The value can either be the name of a built-in jQuery animateion method, such as <code>"slideUp"</code>, or the name of a jQuery UI effect, such as <code>"fold"</code>.
+ In either case the effect will be used with the default duration and the default easing.
+ </desc>
+ </type>
+ <type name="Object">
+ <desc>If the value is an object, then <code>effect</code>, <code>duration</code>, and <code>easing</code> properties may be provided. If the <code>effect</code> property contains the name of a jQuery method, then that method will be used; otherwise it is assumed to be the name of a jQuery UI effect. When using a jQuery UI effect that supports additional settings, you may include those settings in the object and they will be passed to the effect. If <code>duration</code> or <code>easing</code> is omitted, then the default values will be used. If <code>effect</code> is omitted, then <code>"fadeOut"</code> will be used.</desc>
+ </type>
+</option>
View
25 includes/widget-option-show.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<option name="show" default="null">
+ <desc>If and how to animate the showing of the <placeholder name="animated-element"/>.</desc>
+ <type name="Boolean">
+ <desc>
+ When set to <code>false</code>, no animation will be used and the <placeholder name="animated-element"/> will be shown immediately.
+ When set to <code>true</code>, the <placeholder name="animated-element"/> will fade in with the default duration and the default easing.
+ </desc>
+ </type>
+ <type name="Number">
+ <desc>
+ The <placeholder name="animated-element"/> will fade in with the specified duration and the default easing.
+ </desc>
+ </type>
+ <type name="String">
+ <desc>
+ The <placeholder name="animated-element"/> will be shown using the specified effect.
+ The value can either be the name of a built-in jQuery animateion method, such as <code>"slideDown"</code>, or the name of a jQuery UI effect, such as <code>"fold"</code>.
+ In either case the effect will be used with the default duration and the default easing.
+ </desc>
+ </type>
+ <type name="Object">
+ <desc>If the value is an object, then <code>effect</code>, <code>duration</code>, and <code>easing</code> properties may be provided. If the <code>effect</code> property contains the name of a jQuery method, then that method will be used; otherwise it is assumed to be the name of a jQuery UI effect. When using a jQuery UI effect that supports additional settings, you may include those settings in the object and they will be passed to the effect. If <code>duration</code> or <code>easing</code> is omitted, then the default values will be used. If <code>effect</code> is omitted, then <code>"fadeIn"</code> will be used.</desc>
+ </type>
+</option>
Please sign in to comment.
Something went wrong with that request. Please try again.