Skip to content

Commit e78ee55

Browse files
author
Gabriel Schulhof
committed
Filterable: Document events beforefilter and filter
Closes gh-260 Fixes gh-224 Fixes gh-225
1 parent de767e7 commit e78ee55

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

entries/filterable.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,20 @@ $.mobile.filterable.prototype.options.filterCallback = function( index, searchVa
217217
</option>
218218
</options>
219219
<events>
220+
<event name="beforefilter">
221+
<desc>Triggered before the widget begins filtering the list of children.</desc>
222+
<argument name="event" type="Event"/>
223+
</event>
220224
<xi:include href="../includes/widget-event-create.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
225+
<event name="filter">
226+
<desc>Triggered after the widget has performed the filtering on the list of children. The <code>ui</code> parameter contains the list of children that was processed.</desc>
227+
<argument name="event" type="Event"/>
228+
<argument name="ui" type="Object">
229+
<property name="items" type="jQuery">
230+
<desc>A jQuery collection object containing the items over which the filter has iterated.</desc>
231+
</property>
232+
</argument>
233+
</event>
221234
</events>
222235
<methods>
223236
<xi:include href="../includes/widget-method-destroy.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>

0 commit comments

Comments
 (0)