Skip to content

Commit

Permalink
Add disable/enable/option/widget methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed May 25, 2012
1 parent d76939b commit 6b2fe03
Show file tree
Hide file tree
Showing 12 changed files with 397 additions and 62 deletions.
13 changes: 12 additions & 1 deletion entries/accordion.xml
Expand Up @@ -141,8 +141,19 @@
</method>
<method name="option">
<desc>
Returns the widget
Get or set any accordion option. If no value is specified, will act as a getter.
</desc>
<argument name="optionName" type="String">
</argument>
<argument name="value" type="Object" optional="true">
</argument>
</method>
<method name="option">
<desc>
Set multiple accordion options at once by providing an options object.
</desc>
<argument name="options" type="Object">
</argument>
</method>
<method name="resize">
<desc>Recompute heights of the accordion contents when using the fillSpace option and the container height changed. For example, when the container is a resizable, this method should be called by its resize-event.</desc>
Expand Down
39 changes: 34 additions & 5 deletions entries/autocomplete.xml
Expand Up @@ -134,17 +134,46 @@

</events>
<methods>
<method name="close">
<desc>Close the Autocomplete menu. Useful in combination with the search method, to close the open menu.</desc>
</method>
<method name="disable">
<desc>
Disable the autocomplete.
</desc>
</method>
<method name="enable">
<desc>
Enable the autocomplete.
</desc>
</method>
<method name="option">
<desc>
Get or set any autocomplete option. If no value is specified, will act as a getter.
</desc>
<argument name="optionName" type="String">
</argument>
<argument name="value" type="Object" optional="true">
</argument>
</method>
<method name="option">
<desc>
Set multiple autocomplete options at once by providing an options object.
</desc>
<argument name="options" type="Object">
</argument>
</method>
<method name="search">
<desc>Triggers a search event, which, when data is available, then will display the suggestions; can be used by a selectbox-like button to open the suggestions when clicked. If no value argument is specified, the current input's value is used. Can be called with an empty string and minLength: 0 to display all items.
</desc>
<desc>Triggers a search event, which, when data is available, then will display the suggestions; can be used by a selectbox-like button to open the suggestions when clicked. If no value argument is specified, the current input's value is used. Can be called with an empty string and minLength: 0 to display all items.</desc>
<argument name="value" type="String" optional="true">
<desc></desc>
</argument>
</method>
<method name="close">
<desc>Close the Autocomplete menu. Useful in combination with the search method, to close the open menu.</desc>
<method name="widget">
<desc>
Returns the widget
</desc>
</method>

</methods>
<example>

Expand Down
32 changes: 31 additions & 1 deletion entries/button.xml
Expand Up @@ -39,10 +39,40 @@
</event>
</events>
<methods>
<method name="disable">
<desc>
Disable the button.
</desc>
</method>
<method name="enable">
<desc>
Enable the button.
</desc>
</method>
<method name="refresh">
<desc>Refreshes the visual state of the button. Useful for updating button state after the native element's checked or disabled state is changed programatically.</desc>
</method>

<method name="option">
<desc>
Get or set any button option. If no value is specified, will act as a getter.
</desc>
<argument name="optionName" type="String">
</argument>
<argument name="value" type="Object" optional="true">
</argument>
</method>
<method name="option">
<desc>
Set multiple button options at once by providing an options object.
</desc>
<argument name="options" type="Object">
</argument>
</method>
<method name="widget">
<desc>
Returns the widget
</desc>
</method>
</methods>
<example>

Expand Down
32 changes: 31 additions & 1 deletion entries/dialog.xml
Expand Up @@ -194,6 +194,16 @@
<method name="close">
<desc>Close the dialog.</desc>
</method>
<method name="disable">
<desc>
Disable the dialog.
</desc>
</method>
<method name="enable">
<desc>
Enable the dialog.
</desc>
</method>
<method name="isOpen">
<desc>Returns true if the dialog is currently open.</desc>
</method>
Expand All @@ -203,7 +213,27 @@
<method name="open">
<desc>Open the dialog.</desc>
</method>

<method name="option">
<desc>
Get or set any dialog option. If no value is specified, will act as a getter.
</desc>
<argument name="optionName" type="String">
</argument>
<argument name="value" type="Object" optional="true">
</argument>
</method>
<method name="option">
<desc>
Set multiple dialog options at once by providing an options object.
</desc>
<argument name="options" type="Object">
</argument>
</method>
<method name="widget">
<desc>
Returns the widget
</desc>
</method>
</methods>
<example>

Expand Down
33 changes: 31 additions & 2 deletions entries/draggable.xml
Expand Up @@ -146,8 +146,37 @@ Note: Specifying this option as an array of selectors has been removed.</desc>

</events>
<methods>


<method name="disable">
<desc>
Disable the draggable.
</desc>
</method>
<method name="enable">
<desc>
Enable the draggable.
</desc>
</method>
<method name="option">
<desc>
Get or set any draggable option. If no value is specified, will act as a getter.
</desc>
<argument name="optionName" type="String">
</argument>
<argument name="value" type="Object" optional="true">
</argument>
</method>
<method name="option">
<desc>
Set multiple draggable options at once by providing an options object.
</desc>
<argument name="options" type="Object">
</argument>
</method>
<method name="widget">
<desc>
Returns the widget
</desc>
</method>
</methods>
<example>

Expand Down
33 changes: 31 additions & 2 deletions entries/droppable.xml
Expand Up @@ -107,8 +107,37 @@ ui.draggable represents the draggable.</desc>

</events>
<methods>


<method name="disable">
<desc>
Disable the droppable.
</desc>
</method>
<method name="enable">
<desc>
Enable the droppable.
</desc>
</method>
<method name="option">
<desc>
Get or set any droppable option. If no value is specified, will act as a getter.
</desc>
<argument name="optionName" type="String">
</argument>
<argument name="value" type="Object" optional="true">
</argument>
</method>
<method name="option">
<desc>
Set multiple droppable options at once by providing an options object.
</desc>
<argument name="options" type="Object">
</argument>
</method>
<method name="widget">
<desc>
Returns the widget
</desc>
</method>
</methods>
<example>
<desc>Makes the div droppable (a drop target for a draggable).</desc>
Expand Down
32 changes: 31 additions & 1 deletion entries/progressbar.xml
Expand Up @@ -50,13 +50,43 @@ This is a determinate progress bar, meaning that it should only be used in situa
</event>
</events>
<methods>
<method name="disable">
<desc>
Disable the progressbar.
</desc>
</method>
<method name="enable">
<desc>
Enable the progressbar.
</desc>
</method>
<method name="option">
<desc>
Get or set any progressbar option. If no value is specified, will act as a getter.
</desc>
<argument name="optionName" type="String">
</argument>
<argument name="value" type="Object" optional="true">
</argument>
</method>
<method name="option">
<desc>
Set multiple progressbar options at once by providing an options object.
</desc>
<argument name="options" type="Object">
</argument>
</method>
<method name="value">
<desc>This method gets or sets the current value of the progressbar.</desc>
<argument name="value" type="Number" optional="true">
<desc></desc>
</argument>
</method>

<method name="widget">
<desc>
Returns the widget
</desc>
</method>
</methods>
<example>

Expand Down
33 changes: 31 additions & 2 deletions entries/resizable.xml
Expand Up @@ -117,8 +117,37 @@ If specified as an object, the following keys are supported: { n, e, s, w, ne, s

</events>
<methods>


<method name="disable">
<desc>
Disable the resizable.
</desc>
</method>
<method name="enable">
<desc>
Enable the resizable.
</desc>
</method>
<method name="option">
<desc>
Get or set any resizable option. If no value is specified, will act as a getter.
</desc>
<argument name="optionName" type="String">
</argument>
<argument name="value" type="Object" optional="true">
</argument>
</method>
<method name="option">
<desc>
Set multiple resizable options at once by providing an options object.
</desc>
<argument name="options" type="Object">
</argument>
</method>
<method name="widget">
<desc>
Returns the widget
</desc>
</method>
</methods>
<example>

Expand Down
35 changes: 32 additions & 3 deletions entries/selectable.xml
Expand Up @@ -92,8 +92,7 @@
</argument>
</event>
<event name="unselecting" type="selectableunselecting">
<desc>This event is triggered during the select operation, on each element removed from the selection.
</desc>
<desc>This event is triggered during the select operation, on each element removed from the selection.</desc>
<argument name="event" type="Event">
<desc></desc>
</argument>
Expand All @@ -104,10 +103,40 @@

</events>
<methods>
<method name="disable">
<desc>
Disable the selectable.
</desc>
</method>
<method name="enable">
<desc>
Enable the selectable.
</desc>
</method>
<method name="refresh">
<desc> Refresh the position and size of each selectee element. This method can be used to manually recalculate the position and size of each selectee element. Very useful if autoRefresh is set to false.</desc>
</method>

<method name="option">
<desc>
Get or set any selectable option. If no value is specified, will act as a getter.
</desc>
<argument name="optionName" type="String">
</argument>
<argument name="value" type="Object" optional="true">
</argument>
</method>
<method name="option">
<desc>
Set multiple selectable options at once by providing an options object.
</desc>
<argument name="options" type="Object">
</argument>
</method>
<method name="widget">
<desc>
Returns the widget
</desc>
</method>
</methods>
<example>

Expand Down

0 comments on commit 6b2fe03

Please sign in to comment.