class Checkbox extends BaseControl

Checkbox control returning a boolean value.

Methods

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

No description

setValue(mixed $value)

No description

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

Html
getContainerPrototype()

Returns container HTML element template.

Html
getSeparatorPrototype() deprecated

No description

Details

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

No description

Parameters

string|Stringable|null $label

at line 37
Control setValue(mixed $value)

internal  
 

No description

Parameters

mixed $value

Return Value

Control

at line 48
bool isFilled()

Is control filled?

Return Value

bool

at line 54
Html|string getControl()

Generates control's HTML element.

Return Value

Html|string

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

Bypasses label generation.

Parameters

string|Stringable|null $caption

Return Value

Html|string|null

at line 69
Html|null getControlPart()

No description

Return Value

Html|null

at line 75
Html|null getLabelPart()

No description

Return Value

Html|null

at line 84
Html getContainerPrototype()

Returns container HTML element template.

Return Value

Html

at line 91
Html getSeparatorPrototype() deprecated

deprecated use getContainerPrototype()

No description

Return Value

Html