Create a `BrushIntervalSelector` 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 tr
(func=None, trait='selected', **kwargs)
| 1112 | |
| 1113 | |
| 1114 | def brush_int_selector(func=None, trait='selected', **kwargs): |
| 1115 | """Create a `BrushIntervalSelector` interaction for the `figure`. |
| 1116 | |
| 1117 | Also attaches the function `func` as an event listener for the |
| 1118 | specified trait. |
| 1119 | |
| 1120 | Parameters |
| 1121 | ---------- |
| 1122 | |
| 1123 | func: function |
| 1124 | The call back function. It should take at least two arguments. The name |
| 1125 | of the trait and the value of the trait are passed as arguments. |
| 1126 | trait: string |
| 1127 | The name of the BrushIntervalSelector trait whose change triggers the |
| 1128 | call back function `func`. |
| 1129 | """ |
| 1130 | return _create_selector(BrushIntervalSelector, func, trait, **kwargs) |
| 1131 | |
| 1132 | |
| 1133 | def int_selector(func=None, trait='selected', **kwargs): |
nothing calls this directly
no test coverage detected
searching dependent graphs…