class CheckboxInput extends Checkbox implements IValidationInput

Class CheckboxInput. Single checkbox.

Traits

Trait StandardValidationTrait.

Methods

Html
showValidation( Html $control)

Modify control in such a way that it explicitly shows its validation state.

Html
getControl()

Generates a checkbox

static Html
makeCheckbox(string $name, string $htmlId, string|null $caption = NULL, bool $checked = FALSE, bool|mixed $value = FALSE, bool $required = FALSE, bool $disabled = FALSE, Rules |null $rules = NULL)

Makes a Bootstrap checkbox HTML

Details

at line 93
Html showValidation( Html $control)

Modify control in such a way that it explicitly shows its validation state.

Returns the modified element.

Parameters

Html $control

Return Value

Html

at line 34
Html getControl()

Generates a checkbox

Return Value

Html

at line 52
static Html makeCheckbox(string $name, string $htmlId, string|null $caption = NULL, bool $checked = FALSE, bool|mixed $value = FALSE, bool $required = FALSE, bool $disabled = FALSE, Rules |null $rules = NULL)

Makes a Bootstrap checkbox HTML

Parameters

string $name
string $htmlId
string|null $caption
bool $checked
bool|mixed $value pass false to omit
bool $required
bool $disabled
Rules |null $rules

Return Value

Html