InfoCount
extends Component
in package
Table of Contents
- $color : string
- $count : mixed
- $info : string
- $width : int
- __construct() : void
- Create a new InfoCount component instance.
- render() : View|Closure|string
- Get the view / contents that represent the component.
Properties
$color
public
string
$color
= 'info'
$count
public
mixed
$count
$info
public
string
$info
$width
public
int
$width
= 128
Methods
__construct()
Create a new InfoCount component instance.
public
__construct(string $info, mixed $count[, string $color = 'info' ][, int $width = 128 ]) : void
Parameters
- $info : string
-
The information text to display
- $count : mixed
-
The count value to display
- $color : string = 'info'
-
The color theme of the count (default: 'info')
- $width : int = 128
-
The width of the component in pixels (default: 128)
Return values
void —render()
Get the view / contents that represent the component.
public
render() : View|Closure|string