Home > widget-integration > SlickInstance > on
SlickInstance.on() method
Attaches an event handler to the carousel.
Signature:
on(event: string, handler: () => void): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
event |
string |
The event name (e.g., 'afterChange', 'beforeChange') |
|
handler |
() => void |
The event handler function to execute |
Returns:
void