class Checkbox extends BaseControl

Check box control. Allows the user to select a true or false condition.

Methods

__construct(string|Stringable|null $label = null)

No description

setValue(mixed $value)

Sets control's value.

bool
isFilled()

Is control filled?

Html|string
getControl()

Generates control's HTML element.

Html|string|null
getLabel(string|Stringable|null $caption = null)

Bypasses label generation.

Html|null
getControlPart()

No description

Html|null
getLabelPart()

No description

getContainerPrototype()

Returns container HTML element template.

getSeparatorPrototype() deprecated

No description

Details

at line 27
__construct(string|Stringable|null $label = null)

No description

Parameters

string|Stringable|null $label

at line 40
Control setValue(mixed $value)

internal  
 

Sets control's value.

Parameters

mixed $value

Return Value

Control

at line 51
bool isFilled()

Is control filled?

Return Value

bool

at line 57
Html|string getControl()

Generates control's HTML element.

Return Value

Html|string

at line 66
Html|string|null getLabel(string|Stringable|null $caption = null)

Bypasses label generation.

Parameters

string|Stringable|null $caption

Return Value

Html|string|null

at line 72
Html|null getControlPart()

No description

Return Value

Html|null

at line 78
Html|null getLabelPart()

No description

Return Value

Html|null

at line 87
Html getContainerPrototype()

Returns container HTML element template.

Return Value

Html

at line 94
Html getSeparatorPrototype() deprecated

deprecated use getContainerPrototype()

No description

Return Value

Html