Skip to content

Commit d4465ff

Browse files
committed
Dialog: Use common include for show and hide options.
1 parent 6d402ce commit d4465ff

File tree

1 file changed

+3
-33
lines changed

1 file changed

+3
-33
lines changed

entries/dialog.xml

+3-33
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0"?>
2-
<entry name="dialog" type="widget" widget-element="generated wrapper">
2+
<entry name="dialog" type="widget" animated-element="dialog" widget-element="generated wrapper">
33
<title>Dialog Widget</title>
44
<desc>Open content in an interactive overlay.</desc>
55
<longdesc>
@@ -135,22 +135,7 @@
135135
<desc>The only supported string value is <code>"auto"</code> which will allow the dialog height to adjust based on its content.</desc>
136136
</type>
137137
</option>
138-
<option name="hide" default="null" example-value='"explode"'>
139-
<desc>If and how to animate the hiding of the dialog.</desc>
140-
<type name="Number">
141-
<desc>
142-
The dialog will fade out while animating the height and width for the specified duration.
143-
</desc>
144-
</type>
145-
<type name="String">
146-
<desc>
147-
The dialog will be hidden using the specified jQuery UI effect. See the <a href="/category/effects/">list of effects</a> for possible values.
148-
</desc>
149-
</type>
150-
<type name="Object">
151-
<desc>If the value is an object, then <code>effect</code>, <code>delay</code>, <code>duration</code>, and <code>easing</code> properties may be provided. The <code>effect</code> property must 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>delay</code> is omitted, then no delay is used.</desc>
152-
</type>
153-
</option>
138+
<xi:include href="../includes/widget-option-hide.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
154139
<option name="maxHeight" default="false" example-value="600">
155140
<desc>The maximum height to which the dialog can be resized, in pixels.</desc>
156141
<type name="Number" />
@@ -190,22 +175,7 @@
190175
<desc>If set to <code>true</code>, the dialog will be resizable. Requires the <a href="/resizable/">jQuery UI Resizable widget</a> to be included.</desc>
191176
<type name="Boolean" />
192177
</option>
193-
<option name="show" default="null" example-value='"fade"'>
194-
<desc>If and how to animate the showing of the dialog.</desc>
195-
<type name="Number">
196-
<desc>
197-
The dialog will fade in while animating the height and width for the specified duration.
198-
</desc>
199-
</type>
200-
<type name="String">
201-
<desc>
202-
The dialog will be shown using the specified jQuery UI effect. See the <a href="/category/effects/">list of effects</a> for possible values.
203-
</desc>
204-
</type>
205-
<type name="Object">
206-
<desc>If the value is an object, then <code>effect</code>, <code>delay</code>, <code>duration</code>, and <code>easing</code> properties may be provided. The <code>effect</code> property must 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>delay</code> is omitted, then no delay is used.</desc>
207-
</type>
208-
</option>
178+
<xi:include href="../includes/widget-option-show.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
209179
<option name="title" default='null' example-value='"Dialog Title"'>
210180
<desc>Specifies the title of the dialog. If the value is <code>null</code>, the <code>title</code> attribute on the dialog source element will be used.</desc>
211181
<type name="String" />

0 commit comments

Comments
 (0)