Creates a `FastIntervalSelector` 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 trai
(func=None, trait='selected', **kwargs)
| 1131 | |
| 1132 | |
| 1133 | def int_selector(func=None, trait='selected', **kwargs): |
| 1134 | """Creates a `FastIntervalSelector` interaction for the `figure`. |
| 1135 | |
| 1136 | Also attaches the function `func` as an event listener for the |
| 1137 | trait `trait`. |
| 1138 | |
| 1139 | Parameters |
| 1140 | ---------- |
| 1141 | |
| 1142 | func: function |
| 1143 | The call back function. It should take at least two arguments. The name |
| 1144 | of the trait and the value of the trait are passed as arguments. |
| 1145 | trait: string |
| 1146 | The name of the IntervalSelector trait whose change triggers the |
| 1147 | call back function `func`. |
| 1148 | """ |
| 1149 | return _create_selector(FastIntervalSelector, func, trait, **kwargs) |
| 1150 | |
| 1151 | |
| 1152 | def index_selector(func=None, trait='selected', **kwargs): |
nothing calls this directly
no test coverage detected
searching dependent graphs…