Bootstrap plugin for boost-web-forms
npm install boost-web-forms-bootstrapshell
npm i boost-web-forms-bootstrap
`
Usage
Add the bootstrap form layout in your form config's layout option
`javascript
import {Bootstrap4Form} from 'boost-web-forms-bootstrap'
const formConfig = {
layout: Bootstrap4Form()
}
renderForm(forObject, document.body, formConfig)
`
`javascript
const formConfigWithOptions = {
layout: Bootstrap4Form({columns: 2})
}
`
Options
The plugin includes the following options:
| Option | Type | Description | Default Value |
| --- | ----------- | --- | ---------|
|columns| number | The number of total columns in the form | 1
|isInline| boolean | Whether to generate an in-line form | false
|horizontalLabels| boolean | Whether to put labels and inputs horizontally | false
|fullWidthSubmit`| boolean | Whether to create a block button for submit | false