class Button extends BaseControl

Push button control with no default behavior.

Methods

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

No description

bool
isFilled()

Is button pressed?

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

Bypasses label generation.

renderAsButton(bool $state = true)

No description

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

Generates control's HTML element.

Details

at line 21
__construct(string|Stringable|null $caption = null)

No description

Parameters

string|Stringable|null $caption

at line 33
bool isFilled()

Is button pressed?

Return Value

bool

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

Bypasses label generation.

Parameters

string|Stringable|null $caption

Return Value

Html|string|null

at line 49
Button renderAsButton(bool $state = true)

No description

Parameters

bool $state

Return Value

Button

at line 59
Html|string getControl(string|Stringable|null $caption = null)

Generates control's HTML element.

Parameters

string|Stringable|null $caption

Return Value

Html|string