Creates a `BrushSelector` 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)
| 1169 | |
| 1170 | |
| 1171 | def brush_selector(func=None, trait='selected', **kwargs): |
| 1172 | """Creates a `BrushSelector` interaction for the `figure`. |
| 1173 | |
| 1174 | Also attaches the function `func` as an event listener for the |
| 1175 | trait `trait`. |
| 1176 | |
| 1177 | Parameters |
| 1178 | ---------- |
| 1179 | |
| 1180 | func: function |
| 1181 | The call back function. It should take at least two arguments. The name |
| 1182 | of the trait and the value of the trait are passed as arguments. |
| 1183 | trait: string |
| 1184 | The name of the BrushSelector trait whose change triggers the |
| 1185 | call back function `func`. |
| 1186 | """ |
| 1187 | return _create_selector(BrushSelector, func, trait, **kwargs) |
| 1188 | |
| 1189 | |
| 1190 | def multi_selector(func=None, trait='selected', **kwargs): |
nothing calls this directly
no test coverage detected
searching dependent graphs…