Button
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)
Renders as a
Html
getControl(string|Stringable|null $caption = null)
Generates control's HTML element.
Details
at line 19
__construct(string|Stringable|null $caption = null)
No description
at line 31
bool
isFilled()
Is button pressed?
at line 41
Html|string|null
getLabel(string|Stringable|null $caption = null)
Bypasses label generation.
at line 50
Button
renderAsButton(bool $state = true)
Renders as a
at line 60
Html
getControl(string|Stringable|null $caption = null)
Generates control's HTML element.