Creates buttons from a key-value list of handlers, attaches the handlers to them and appends them to the passed element.
The element where the buttons will be appended
The event handlers attached to the buttons
Creates buttons from a key-value list of handlers, attaches the handlers to them and appends them to the passed element.