Creates an `IndexSelector` 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
(func=None, trait='selected', **kwargs)
| 1150 | |
| 1151 | |
| 1152 | def index_selector(func=None, trait='selected', **kwargs): |
| 1153 | """Creates an `IndexSelector` interaction for the `figure`. |
| 1154 | |
| 1155 | Also attaches the function `func` as an event listener for the |
| 1156 | trait `trait`. |
| 1157 | |
| 1158 | Parameters |
| 1159 | ---------- |
| 1160 | |
| 1161 | func: function |
| 1162 | The call back function. It should take at least two arguments. The name |
| 1163 | of the trait and the value of the trait are passed as arguments. |
| 1164 | trait: string |
| 1165 | The name of the IndexSelector trait whose change triggers the |
| 1166 | call back function `func`. |
| 1167 | """ |
| 1168 | return _create_selector(IndexSelector, func, trait, **kwargs) |
| 1169 | |
| 1170 | |
| 1171 | def brush_selector(func=None, trait='selected', **kwargs): |
nothing calls this directly
no test coverage detected
searching dependent graphs…