Add a selectAll button without breaking template


It’s taking me time I don’t have digesting the adapters and decorators of select2, so I’d be incredibly grateful for your input, even pointing me in another direction would be more than okay.

The (Checkbox) Templates In Question

An Implementation of selectAll, deselectAll Buttons

Disclaimer: All jsfiddles provided above are the generous help of their owners over at GitHub.
EDIT: Thanks for looking at this issue, regardless of whether you provide a solution or not.