Use the following configuration options to bind the Bootstrap Buttons component.
Name
Default
Description
alignment
horizontal
Orientation of the buttons. Valid values are horizontal or vertical.
vertical
color
btn-primary
CSS color class.
datamap
Used to bind data to the component. See Data Binding for details.
multiselect
false
Allow multiple buttons to be selected at the same time
The following example changes the orientation of the buttons to vertical.
const buttons = new wire.bsButton().render("#buttons", { ... alignment: "vertical" });
Last updated 3 years ago