Table of Contents
Alert
An alert is a colored box with title and text.

DEPRECATED:
Use bootstrap instead. https://getbootstrap.com/docs/5.3/components/alerts/
Syntax
$renderAdminLTE->getAlert($aOptions);
Return
{string} html code
Parameters
- $aOptions - {array} options to describe the element
Styling:
| Key | Description |
|---|---|
| type | one of - [empty] - “danger” - “info” - “primary” - “secondary” - “success” - “warning” - “dark” - “gray” - “light” |
Content:
| Key | Description |
|---|---|
| text | visible text |
| title | title |
Other:
| Key | Description |
|---|---|
| dismissable | optional: background color (without prefix “bg”); hint: you should prefer a “type”. |
Example
$renderAdminLTE->getAlert(array (
'type' => 'warning',
'title' => 'I need your attention',
'dismissible' => 1,
'text' => 'Please check it. Maybe there is something wrong here.',
));