This file is indexed.

/usr/share/doc/libjs-jquery-selectize.js/events.md is in libjs-jquery-selectize.js 0.12.3+dfsg-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
## Selectize API – Events

In the [usage documentation](usage.md), a few callbacks are listed that
allow you to listen for certain events. Callbacks aren't always ideal though;
specifically when you wish to have multiple handlers.

Selectize instances have a basic event emitter interface that mimics jQuery, Backbone.js, et al:

```js
var handler = function() { /* ... */ };
selectize.on('event_name', handler);
selectize.off('event_name');
selectize.off('event_name', handler);
```

### List of Events

<table width="100%">
	<tr>
		<th valign="top" width="200px" align="left">Event</th>
		<th valign="top" width="150px" align="left">Params</th>
		<th valign="top" align="left">Description</th>
	</tr>
	<tr>
		<td valign="top"><code>"initialize"</code></td>
		<td valign="top"></td>
		<td valign="top">Invoked once the control is completely initialized.</td>
	</tr>
	<tr>
		<td valign="top"><code>"change"</code></td>
		<td valign="top"><code>value</code></td>
		<td valign="top">Invoked when the value of the control changes.</td>
	</tr>
	<tr>
		<td valign="top"><code>"focus"</code></td>
		<td valign="top"></td>
		<td valign="top">Invoked when the control gains focus.</td>
	</tr>
	<tr>
		<td valign="top"><code>"blur"</code></td>
		<td valign="top"></td>
		<td valign="top">Invoked when the control loses focus.</td>
	</tr>
	<tr>
		<td valign="top"><code>"item_add"</code></td>
		<td valign="top"><code>value</code>, <code>$item</code></td>
		<td valign="top">Invoked when an item is selected.</td>
	</tr>
	<tr>
		<td valign="top"><code>"item_remove"</code></td>
		<td valign="top"><code>value</code>, <code>$item</code></td>
		<td valign="top">Invoked when an item is deselected.</td>
	</tr>
	<tr>
		<td valign="top"><code>"clear"</code></td>
		<td valign="top"></td>
		<td valign="top">Invoked when the control is manually cleared via the clear() method.</td>
	</tr>
	<tr>
		<td valign="top"><code>"option_add"</code></td>
		<td valign="top"><code>value</code>, <code>data</code></td>
		<td valign="top">Invoked when a new option is added to the available options list.</td>
	</tr>
	<tr>
		<td valign="top"><code>"option_remove"</code></td>
		<td valign="top"><code>value</code></td>
		<td valign="top">Invoked when an option is removed from the available options.</td>
	</tr>
    <tr>
        <td valign="top"><code>"option_clear"</code></td>
        <td valign="top"></td>
        <td valign="top">Invoked when all options are removed from the control.</td>
    </tr>
    <tr>
        <td valign="top"><code>"optgroup_add"</code></td>
        <td valign="top"><code>id</code>, <code>data</code></td>
        <td valign="top">Invoked when a new option is added to the available options list.</td>
    </tr>
    <tr>
        <td valign="top"><code>"optgroup_remove"</code></td>
        <td valign="top"><code>id</code></td>
        <td valign="top">Invoked when an option group is removed.</td>
    </tr>
    <tr>
        <td valign="top"><code>"optgroup_clear"</code></td>
        <td valign="top"></td>
        <td valign="top">Invoked when all option groups are removed.</td>
    </tr>
	<tr>
		<td valign="top"><code>"dropdown_open"</code></td>
		<td valign="top"><code>$dropdown</code></td>
		<td valign="top">Invoked when the dropdown opens.</td>
	</tr>
	<tr>
		<td valign="top"><code>"dropdown_close"</code></td>
		<td valign="top"><code>$dropdown</code></td>
		<td valign="top">Invoked when the dropdown closes.</td>
	</tr>
	<tr>
		<td valign="top"><code>"type"</code></td>
		<td valign="top"><code>str</code></td>
		<td valign="top">Invoked when the user types while filtering options.</td>
	</tr>
	<tr>
		<td valign="top"><code>"load"</code></td>
		<td valign="top"><code>data</code></td>
		<td valign="top">Invoked when new options have been loaded and added to the control (via the <code>load</code>  option or <code>load</code>  API method).</td>
	</tr>
	<tr>
		<td valign="top"><code>"destroy"</code></td>
		<td valign="top"></td>
		<td valign="top">Invoked right before the control is destroyed.</td>
	</tr>
</table>