JavaScript

A5.ButtonListinsertButtons Method

Syntax

A5.ButtonList.insertButtons(value,buttons)

Arguments

valueany

The value of the button in the button list after which to insert the new buttons.

buttonsarray

An array of object containing the text, icon(s), state and value of each button to insert to the button list. See A5.ButtonList for details on the contents of the objects.

Description

Insert buttons into the button list.

Example

// assume "colorsBtnList" is an A5.ButtonList
colorsBtnList.insertButtons('red',[{html: 'Purple', value: 'purple'},{html: 'Yellow', value: 'yellow'}]);