Table of Contents
Alert
An alert is a colored box with title and text.
Syntax
$renderAdminLTE->getAlert($aOptions);
Return
{string} html code
Parameters
- $aOptions - {array} options to describe the element
Styling:
Key | Description |
---|---|
type | one of - [empty] - “danger” - “dark” - “info” - “primary” - “secondary” - “success” - “warning” |
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.',
));