Entries tagged with “toolkit”


A reusable Javascript toggle pattern

This is a toggle pattern that can be reused multiple times on a page with options to customise parts of it. It is a very common pattern, so I've been keen to get it documented for future use....

Check all: A JavaScript pattern to check a group of checkboxes

The check all pattern allows a user to check or uncheck a group of checkboxes (or radio boxes) by checking a single box that controls the rest of the group...

The first item in my JavaScript toolkit: A number input spinner

I decided that the time had come to get my head around JavaScript, so with some great teaching from Jeremy, I have finally reached a point where I can write some JavaScript myself. In this example, I have built a small, yet common pattern: A number input spinner....