Introduction
Pinwheel attempts to be as accommodating as possible. To that end, it provides hooks into its behavior at various places:
Most of them correspond to points in the opening and closing of the Pinwheel:
- beforeOpen
- afterOpen
- beforeClose
- afterClose
- selected
Details
Each of the hooks is a Pinwheel option that accepts a function or an array of functions. All of them except selected map the Pinwheel object to this; selected instead maps the choice element which has just been chosen to this.