Documentation

Info extends Component
in package

Table of Contents

$align  : string
$classes  : string
$icon  : string|null
$isUrl  : bool
$label  : string|null
$type  : string
$value  : string|null
__construct()  : void
Create a new Info component instance.
render()  : View|string
Get the view / contents that represent the component.

Properties

$align

public string $align = 'left'

$classes

public string $classes = ''

$icon

public string|null $icon = null

$isUrl

public bool $isUrl = false

$label

public string|null $label = null

$type

public string $type = 'text'

$value

public string|null $value = null

Methods

__construct()

Create a new Info component instance.

public __construct([string $type = 'text' ][, string $classes = '' ][, string $align = 'left' ][, bool $isUrl = false ][, string|null $label = null ][, string|null $value = null ][, string|null $icon = null ]) : void
Parameters
$type : string = 'text'

Display type: 'text', 'amount', 'timestamp', or 'date' (default: 'text')

$classes : string = ''

Additional CSS classes (default: '')

$align : string = 'left'

Text alignment: 'left', 'right', 'center' (default: 'left')

$isUrl : bool = false

Whether the value is a URL (default: false)

$label : string|null = null

The label to display

$value : string|null = null

The value to display

$icon : string|null = null

Optional icon to display

Return values
void

render()

Get the view / contents that represent the component.

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

Search results