Methods
(inner) bsCheckbox(inputAttrs, labelContent) → {HTMLDivElement}
Bootstrap <input type="checkbox"> with an appending <label>; would be radio or switch if explicitly specified.
Parameters:
| Name | Type | Description |
|---|---|---|
inputAttrs |
Object | |
labelContent |
string | JsonML | HTMLlabelContentent |
Returns:
- Type
- HTMLDivElement
(inner) bsInputBasic(inputAttrs, labelContent, datalistopt) → {HTMLDivElement}
Basic Bootstrap <input> or <textarea> with a prepending <label>.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
inputAttrs |
Object | |||
labelContent |
string | JsonML | HTMLlabelContentent | |||
datalist |
Array.<string> |
<optional> |
null |
Returns:
- Type
- HTMLDivElement
(inner) bsInputFloatingLabel(inputAttrs, labelContent, datalistopt) → {HTMLDivElement}
Bootstrap <input> or <textarea> with a floating <label>.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
inputAttrs |
Object | attribute |
||
labelContent |
string | JsonML | HTMLlabelContentent | |||
datalist |
Array.<string> |
<optional> |
null |
Returns:
- Type
- HTMLDivElement
(inner) bsRadio(inputAttrs, labelContent) → {HTMLDivElement}
Bootstrap <input type="radio"> with an appending <label>.
Parameters:
| Name | Type | Description |
|---|---|---|
inputAttrs |
Object | |
labelContent |
string | JsonML | HTMLlabelContentent |
Returns:
- Type
- HTMLDivElement
(inner) bsSelectFloatingLabel(selectAttrs, labelContent, options, selected) → {HTMLDivElement}
Parameters:
| Name | Type | Description |
|---|---|---|
selectAttrs |
Object | |
labelContent |
string | JsonML | HTMLlabelContentent | |
options |
Array.<string> | Map | Object | |
selected |
string | Array.<string> |
- Source:
- See:
Returns:
- Type
- HTMLDivElement
Example
bsSelectFloatingLabel({}, 'floating label', ['a1', 'a2', 'a3'], 'a3')
(inner) bsSwitch(inputAttrs, labelContent) → {HTMLDivElement}
Bootstrap <input type="checkbox" role="switch"> with an appending <label>.
Parameters:
| Name | Type | Description |
|---|---|---|
inputAttrs |
Object | |
labelContent |
string | JsonML | HTMLlabelContentent |
Returns:
- Type
- HTMLDivElement