Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit aab945e

Browse files
committed
Updated documentation.
1 parent b5af88c commit aab945e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,21 @@ Sets the default dropdown item on initialisation. The value can be a the value o
189189

190190
onChange: function(event, value, requiredValues, requirementsMet) { }
191191

192-
<sub>Added: 1.0.0</sub>
192+
<sub>Added: 1.0.0</sub><br/>
193193
<sub>Updated: 1.2.4</sub>
194194

195195
Event handler triggered when the dropdown value is changed. The event handler is passed the event object, the value of the current dropdown, and an object containing the values of all the required dropdowns. A boolean value indicating whether the requirements for a particular dropdown have been met or not is also passed.
196196

197+
## Methods
198+
199+
#### destroy
200+
201+
Destroys the instance and reverts everything back to their initial state.
202+
203+
$('#dropdown').cascadingDropdown('destroy');
204+
205+
<sub>Added: 1.2.7</sub>
206+
197207
## Server-side implementation
198208

199209
By default, this plugin expects the web service to return a JSON object containing an array of objects with properties 'label' and 'value'. The web service may also include a 'selected' property for an object within an array to indicate that that particular object is to be the selected item.

0 commit comments

Comments
 (0)