Documentation

TagDual extends Component
in package

Table of Contents

$color  : string
$key  : string
$margin  : bool
$size  : string
$value  : string|null
__construct()  : void
Create a new TagDual component instance.
render()  : View|Closure|string
Get the view / contents that represent the component.

Properties

$color

public string $color = 'info'

$size

public string $size = 'normal'

$value

public string|null $value = null

Methods

__construct()

Create a new TagDual component instance.

public __construct(string $key[, string|null $value = null ][, string $size = 'normal' ][, bool $margin = true ][, string $color = 'info' ]) : void
Parameters
$key : string

The key/label text for the first part of the dual tag

$value : string|null = null

Optional value text for the second part of the dual tag

$size : string = 'normal'

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

$margin : bool = true

Whether to apply margin to the tag (default: true)

$color : string = 'info'

Color theme of the tag (default: 'info')

Return values
void

render()

Get the view / contents that represent the component.

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

Search results