Documentation

Status extends Component
in package

Table of Contents

$class  : string
$icon  : bool
$label  : bool
$size  : string|null
$status  : string
__construct()  : void
Create a new Status component instance.
render()  : View|string
Get the view / contents that represent the component.

Properties

$class

public string $class = 'is-info'

$label

public bool $label = false

$size

public string|null $size = null

Methods

__construct()

Create a new Status component instance.

public __construct(string $status[, bool $icon = true ][, string $class = 'is-info' ][, bool $label = false ][, string|null $size = null ]) : void
Parameters
$status : string

The status text to display

$icon : bool = true

Whether to show an icon (default: true)

$class : string = 'is-info'

CSS class for styling (default: 'is-info')

$label : bool = false

Whether to show as a label (default: false)

$size : string|null = null

Optional size modifier for the status

Return values
void

render()

Get the view / contents that represent the component.

public render() : View|string
Return values
View|string

Search results