Configuration

Use the following configuration options to bind the Bootstrap Buttons component.

Properties

Name

Default

Description

alignment

horizontal

Orientation of the buttons. Valid values are horizontal or 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