File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -458,6 +458,24 @@ The `Tether` object has these methods:
458458- ` destroy() ` - Disable and remove all references
459459- ` position() ` - Manually trigger a repositioning
460460
461+ Events
462+ ------
463+
464+ The ` Tether ` object also has events support, since it extends our ` Evented ` class.
465+
466+ The methods exposed to listen to events are:
467+
468+ - ` on(event, handler) ` - Adds an event listener that is fired whenever the event is fired
469+ - ` once(event, handler) ` - Adds an event listener that is only fired the first time the event is fired
470+ - ` off(event, handler) ` - Removes the event listener
471+ - ` trigger(event) ` - Manually triggers events
472+
473+ The events fired are:
474+
475+ - ` repositioned ` - Fired whenever the tether element is moved
476+ - ` update ` - Fired whenever the Tether instance runs into a constraint. You could use this
477+ for things like manually flipping an arrow or other tweaks.
478+
461479Options
462480-------
463481
You can’t perform that action at this time.
0 commit comments