Documentation

TagIcon extends Component
in package

Table of Contents

$class  : string
$icon  : string
$size  : string
$title  : string|null
$value  : string
__construct()  : void
Create a new TagIcon component instance.
render()  : View|Closure|string
Get the view / contents that represent the component.

Properties

$class

public string $class = 'info'

$size

public string $size = 'normal'

$title

public string|null $title = null

Methods

__construct()

Create a new TagIcon component instance.

public __construct(string $icon, string $value[, string $size = 'normal' ][, string $class = 'info' ][, string|null $title = null ]) : void
Parameters
$icon : string

Icon name/class to display in the tag

$value : string

The text value to display in the tag

$size : string = 'normal'

Size of the tag ('small', 'normal', 'medium', 'large') (default: 'normal')

$class : string = 'info'

CSS color class for the tag (default: 'info')

$title : string|null = null

Optional tooltip text for the tag

Return values
void

render()

Get the view / contents that represent the component.

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

Search results