You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### new crosstalk.FilterHandle([group], [extraInfo])
51
37
52
38
| Param | Type | Description |
53
39
| ------------- | ------------- | ------------- |
54
-
|[group]| <code>string</code> | The name of the Crosstalk group, or if none, null or undefined (or any other falsy value). This can be changed later via the [FilterHandle#setGroup](FilterHandle#setGroup) method. |
40
+
|[group]| <code>string</code> | The name of the Crosstalk group, or if none, null or undefined (or any other falsy value). This can be changed later via the [setGroup](#FilterHandle+setGroup) method. |
55
41
|[extraInfo]| <code>Object</code> | An object whose properties will be copied to the event object whenever an event is emitted. |
|[extraInfo]| <code>Object</code> | Extra properties to be included on the event object that's passed to listeners (in addition to any options that were passed into the `FilterHandle` constructor). |
97
83
98
-
<aname="module_crosstalk.FilterHandle+set"></a>
84
+
<aname="FilterHandle+set"></a>
99
85
100
-
####filterHandle.set(keys, [extraInfo])
86
+
### filterHandle.set(keys, [extraInfo])
101
87
Set this handle's contribution to the filter set. This array should consist
102
88
of the keys of the rows that _should_ be displayed; any keys that are not
103
89
present in the array will be considered _filtered out_. Note that multiple
104
90
`FilterHandle` instances in the group may each contribute an array of keys,
105
91
and only those keys that appear in _all_ of the arrays make it through the
106
92
filter.
107
93
108
-
**Kind**: instance method of [<code>FilterHandle</code>](#module_crosstalk.FilterHandle)
94
+
**Kind**: instance method of [<code>FilterHandle</code>](#FilterHandle)
| keys | <code>Array.<string></code> | Empty array, or array of keys. To clear the filter, don't pass an empty array; instead, use the [FilterHandle#clear](FilterHandle#clear) method. |
99
+
| keys | <code>['Array'].<string></code> | Empty array, or array of keys. To clear the filter, don't pass an empty array; instead, use the [clear](#FilterHandle+clear) method. |
114
100
|[extraInfo]| <code>Object</code> | Extra properties to be included on the event object that's passed to listeners (in addition to any options that were passed into the `FilterHandle` constructor). |
**Kind**: instance method of [<code>FilterHandle</code>](#module_crosstalk.FilterHandle)
122
-
**Returns**: <code>string</code> - - A token to pass to [FilterHandle#off](FilterHandle#off) to cancel
107
+
**Kind**: instance method of [<code>FilterHandle</code>](#FilterHandle)
108
+
**Returns**: <code>string</code> - - A token to pass to [off](#FilterHandle+off) to cancel
123
109
this subscription.
124
110
125
111
| Param | Type | Description |
126
112
| ------------- | ------------- | ------------- |
127
113
| eventType | <code>string</code> | Indicates the type of events to listen to. Currently, only `"change"` is supported. |
128
114
| listener | <code>FilterHandle~listener</code> | The callback function that will be invoked when the event occurs. |
129
115
130
-
<aname="module_crosstalk.FilterHandle+off"></a>
116
+
<aname="FilterHandle+off"></a>
131
117
132
-
####filterHandle.off(eventType, listener)
133
-
Cancel event subscriptions created by [FilterHandle#on](FilterHandle#on).
118
+
### filterHandle.off(eventType, listener)
119
+
Cancel event subscriptions created by [on](#FilterHandle+on).
134
120
135
-
**Kind**: instance method of [<code>FilterHandle</code>](#module_crosstalk.FilterHandle)
121
+
**Kind**: instance method of [<code>FilterHandle</code>](#FilterHandle)
136
122
137
123
| Param | Type | Description |
138
124
| ------------- | ------------- | ------------- |
139
125
| eventType | <code>string</code> | The type of event to unsubscribe. |
140
-
| listener | <code>string</code> \| <code>FilterHandle~listener</code> | Either the callback function previously passed into [FilterHandle#on](FilterHandle#on), or the string that was returned from [FilterHandle#on](FilterHandle#on). |
126
+
| listener | <code>string</code> \| <code>FilterHandle~listener</code> | Either the callback function previously passed into [on](#FilterHandle+on), or the string that was returned from [on](#FilterHandle+on). |
127
+
128
+
<aname="FilterHandle+event_change"></a>
129
+
130
+
### "change"
131
+
**Kind**: event emitted by [<code>FilterHandle</code>](#FilterHandle)
132
+
**Properties**
133
+
134
+
| Name | Type | Description |
135
+
| ------------- | ------------- | ------------- |
136
+
| value | <code>object</code> | The new value of the filter set, or `null` if no filter set is active. |
137
+
| oldValue | <code>object</code> | The previous value of the filter set. |
138
+
| sender |[<code>FilterHandle</code>](#FilterHandle)| The `FilterHandle` instance that changed the value. |
0 commit comments