BootstrapForm
class BootstrapForm extends Form
Class BootstrapForm Form rendered using Bootstrap 4
Traits
Properties
string | $ajaxClass | ||
protected Html | $elementPrototype | ||
bool | $ajax | ||
int | $renderMode | ||
bool | $showValidation | If valid fields should explicitly be green if valid | |
bool | $autoShowValidation | If true, valid inputs will be explicitly green on unsuccessful submit |
Methods
No description
No description
No description
No description
Adds a datetime input.
Adds error to a specific component
No description
No description
No description
No description
No description
No description
No description
No description
No description
BootstrapForm constructor.
No description
No description
No description
No description
No description
No description
No description
If valid fields should explicitly be green
If valid fields should explicitly be green
No description
No description
Details
in
BootstrapContainerTrait
at line 43
ButtonInput
addButton(string $name, null|string|
Html
$content = NULL, string $btnClass = 'btn-secondary')
in
BootstrapContainerTrait
at line 57
CheckboxInput
addCheckbox(string $name, null $caption = NULL)
in
BootstrapContainerTrait
at line 71
CheckboxListInput
addCheckboxList(string $name, null $label = NULL, array $items = NULL)
in
BootstrapContainerTrait
at line 79
abstract
addComponent(
IComponent
$component, $name, $insertBefore = NULL)
in
BootstrapContainerTrait
at line 85
BootstrapContainer
addContainer(string $name)
in
BootstrapContainerTrait
at line 103
DateTimeInput
addDateTime(string $name, string $label)
Adds a datetime input.
in
BootstrapContainerTrait
at line 116
TextInput
addEmail($name, null $label = NULL)
in
BootstrapContainerTrait
at line 127
addInputError(string $componentName, string $message)
Adds error to a specific component
in
BootstrapContainerTrait
at line 138
TextInput
addInteger(string $name, string $label = NULL)
in
BootstrapContainerTrait
at line 151
MultiselectInput
addMultiSelect(string $name, null $label = NULL, array $items = NULL, null
$size = NULL)
in
BootstrapContainerTrait
at line 167
UploadInput
addMultiUpload(string $name, string $label = NULL)
in
BootstrapContainerTrait
at line 179
TextInput
addPassword(string $name, string $label = NULL, null $cols = NULL, null
$maxLength = NULL)
in
BootstrapContainerTrait
at line 185
addRadioList($name, $label = NULL, array $items = NULL)
in
BootstrapContainerTrait
at line 200
SelectInput
addSelect(string $name, string $label = NULL, array $items = NULL, null
$size = NULL)
in
BootstrapContainerTrait
at line 217
SubmitButtonInput
addSubmit(string $name, string $caption = NULL, string $btnClass = 'btn-primary')
in
BootstrapContainerTrait
at line 233
TextInput
addText(string $name, string $label = NULL, null $cols = NULL, null
$maxLength = NULL)
in
BootstrapContainerTrait
at line 254
TextAreaInput
addTextArea(string $name, string $label = NULL, null $cols = NULL, null
$rows = NULL)
in
BootstrapContainerTrait
at line 275
UploadInput
addUpload(string $name, string $label = NULL, bool $multiple = FALSE)
in
AddRowTrait
at line 24
BootstrapRow
addRow(string|null $name = NULL)
Adds a new Grid system row.
at line 60
__construct(int|
IContainer
|null $container = NULL)
BootstrapForm constructor.
at line 80
getElementPrototype()
at line 88
BootstrapRenderer
|
IFormRenderer
getRenderer()
at line 97
BootstrapForm
setRenderer(
IFormRenderer
$renderer = NULL)
at line 110
int
getRenderMode()
at line 118
bool
isAjax()
at line 126
bool
isAutoShowValidation()
at line 135
BootstrapForm
setAutoShowValidation(bool $autoShowValidation)
at line 146
bool
isShowValidation()
If valid fields should explicitly be green
at line 156
BootstrapForm
setShowValidation(bool $showValidation)
If valid fields should explicitly be green