Alert
extends Component
in package
Table of Contents
- $color : string
- $icon : string
- $message : string
- __construct() : void
- Create a new Alert component instance.
- render() : View|string
- Get the view / contents that represent the component.
Properties
$color
public
string
$color
= 'info'
$icon
public
string
$icon
= 'info'
$message
public
string
$message
Methods
__construct()
Create a new Alert component instance.
public
__construct(string $message[, string $icon = 'info' ][, string $color = 'info' ]) : void
Parameters
- $message : string
-
The alert message to be displayed
- $icon : string = 'info'
-
The icon to be shown (default: 'info')
- $color : string = 'info'
-
The color theme of the alert (default: 'info')
Return values
void —render()
Get the view / contents that represent the component.
public
render() : View|string