Skip to content

Commit 7ce47b2

Browse files
committed
document missing parameters
1 parent a73e938 commit 7ce47b2

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

public/index.html

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,16 @@ <h2>Options</h2>
316316
<div class="section">
317317
<h2>Events</h2>
318318

319-
<p>All events are called on original element, first argument is the original element too. And can be bound like this:</p>
320-
321-
<pre><code class="language-javascript">$('select').on('eventname', function(element) {
322-
&nbsp;&nbsp;// your code
323-
});</code></pre>
319+
<p>All events are called on original element and can be bound like this:</p>
320+
321+
<pre><code class="language-javascript">/**
322+
* @param {Object} event - jquery event object
323+
* @param {HTMLElement} element - original dom element
324+
* @param {Object} selectric - current selectric instance
325+
*/
326+
$('select').on('eventname', function(event, element, selectric) {
327+
&nbsp;&nbsp;// your code
328+
});</code></pre>
324329

325330
<p><code>eventname</code> can be one of the following:</p>
326331

0 commit comments

Comments
 (0)