Creates a `MultiSelector` interaction for the `figure`. Also attaches the function `func` as an event listener for the trait `trait`. Parameters ---------- func: function The call back function. It should take at least two arguments. The name of the trait and t
(func=None, trait='selected', **kwargs)
| 1188 | |
| 1189 | |
| 1190 | def multi_selector(func=None, trait='selected', **kwargs): |
| 1191 | """Creates a `MultiSelector` interaction for the `figure`. |
| 1192 | |
| 1193 | Also attaches the function `func` as an event listener for the |
| 1194 | trait `trait`. |
| 1195 | |
| 1196 | Parameters |
| 1197 | ---------- |
| 1198 | |
| 1199 | func: function |
| 1200 | The call back function. It should take at least two arguments. The name |
| 1201 | of the trait and the value of the trait are passed as arguments. |
| 1202 | trait: string |
| 1203 | The name of the MultiSelector trait whose change triggers the |
| 1204 | call back function `func`. |
| 1205 | """ |
| 1206 | return _create_selector(MultiSelector, func, trait, **kwargs) |
| 1207 | |
| 1208 | |
| 1209 | def lasso_selector(func=None, trait='selected', **kwargs): |
nothing calls this directly
no test coverage detected
searching dependent graphs…