Skip to content

Commit a53d243

Browse files
committed
Tabs: Fix signatures for methods that take an index or href
Fixes gh-207 Closes gh-219
1 parent c814b99 commit a53d243

File tree

1 file changed

+31
-27
lines changed

1 file changed

+31
-27
lines changed

entries/tabs.xml

+31-27
Original file line numberDiff line numberDiff line change
@@ -217,49 +217,53 @@
217217
<signature>
218218
<desc>Disables all tabs.</desc>
219219
</signature>
220-
<signature example-params='1'>
220+
<signature example-params="1">
221221
<desc>
222222
Disables a tab. The selected tab cannot be disabled. To disable more than one tab at once, set the <a href="#option-disabled"><code>disabled</code></a> option: <code>$( "#tabs" ).tabs( "option", "disabled", [ 1, 2, 3 ] )</code>.
223223
</desc>
224-
<argument name="index">
225-
<desc>Which tab to disable.</desc>
226-
<type name="Number">
227-
<desc>The zero-based index of the tab to disable.</desc>
228-
</type>
229-
<type name="String">
230-
<desc>The <code>href</code> of the tab to disable.</desc>
231-
</type>
224+
<argument name="index" type="Number">
225+
<desc>The zero-based index of the tab to disable.</desc>
226+
</argument>
227+
</signature>
228+
<signature example-params='"#foo"'>
229+
<desc>
230+
Disables a tab. The selected tab cannot be disabled.
231+
</desc>
232+
<argument name="href" type="String">
233+
<desc>The <code>href</code> of the tab to disable.</desc>
232234
</argument>
233235
</signature>
234236
</method>
235237
<method name="enable">
236238
<signature>
237239
<desc>Enables all tabs.</desc>
238240
</signature>
239-
<signature example-params='1'>
241+
<signature example-params="1">
240242
<desc>Enables a tab. To enable more than one tab at once reset the disabled property like: <code>$( "#example" ).tabs( "option", "disabled", [] );</code>.</desc>
241-
<argument name="index">
242-
<desc>Which tab to enable.</desc>
243-
<type name="Number">
244-
<desc>The zero-based index of the tab to enable.</desc>
245-
</type>
246-
<type name="String">
247-
<desc>The <code>href</code> of the tab to enable.</desc>
248-
</type>
243+
<argument name="index" type="Number">
244+
<desc>The zero-based index of the tab to enable.</desc>
245+
</argument>
246+
</signature>
247+
<signature example-params='"#foo"'>
248+
<desc>Enables a tab.</desc>
249+
<argument name="href" type="String">
250+
<desc>The <code>href</code> of the tab to enable.</desc>
249251
</argument>
250252
</signature>
251253
</method>
252-
<method name="load" example-params='1'>
253-
<desc>Loads the panel content of a remote tab.</desc>
254-
<argument name="index">
255-
<desc>Which tab to load.</desc>
256-
<type name="Number">
254+
<method name="load">
255+
<signature example-params="1">
256+
<desc>Loads the panel content of a remote tab.</desc>
257+
<argument name="index" type="Number">
257258
<desc>The zero-based index of the tab to load.</desc>
258-
</type>
259-
<type name="String">
259+
</argument>
260+
</signature>
261+
<signature example-params='"#foo"'>
262+
<desc>Loads the panel content of a remote tab.</desc>
263+
<argument name="href" type="String">
260264
<desc>The <code>href</code> of the tab to load.</desc>
261-
</type>
262-
</argument>
265+
</argument>
266+
</signature>
263267
</method>
264268
<xi:include href="../includes/widget-method-instance.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
265269
<xi:include href="../includes/widget-method-option.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>

0 commit comments

Comments
 (0)