Creates a `LassoSelector` interaction for the `figure`. Also attaches the function `func` as an event listener for the specified trait. Parameters ---------- func: function The call back function. It should take at least two arguments. The name of the trait and
(func=None, trait='selected', **kwargs)
| 1207 | |
| 1208 | |
| 1209 | def lasso_selector(func=None, trait='selected', **kwargs): |
| 1210 | """Creates a `LassoSelector` interaction for the `figure`. |
| 1211 | |
| 1212 | Also attaches the function `func` as an event listener for the |
| 1213 | specified trait. |
| 1214 | |
| 1215 | Parameters |
| 1216 | ---------- |
| 1217 | |
| 1218 | func: function |
| 1219 | The call back function. It should take at least two arguments. The name |
| 1220 | of the trait and the value of the trait are passed as arguments. |
| 1221 | trait: string |
| 1222 | The name of the LassoSelector trait whose change triggers the |
| 1223 | call back function `func`. |
| 1224 | """ |
| 1225 | return _create_selector(LassoSelector, func, trait, **kwargs) |
| 1226 | |
| 1227 | |
| 1228 | def clear(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…