constructor
flagrate.createButton
flagrate.createButton(option) → flagrate.Button
new flagrate.Button
option
(Object
) – options.
Button.
option
id
(String):id
attribute ofbutton
element.className
(String):attribute
(Object):style
(Object): (using flagrate.Element.setStyle)color
(String): (using flagrate.Button#setColor)label
(String; default""
):icon
(String):isFocused
(Boolean; defaultfalse
):isDisabled
(Boolean; defaultfalse
):isRemovableByUser
(Boolean; defaultfalse
):onSelect
(Function):onRemove
(Function):