Table of Contents
Badge
A badge is a small counter or info next to a text info,

DEPRECATED:
Use bootstrap instead. https://getbootstrap.com/docs/5.3/components/badge/
Syntax
$renderAdminLTE->getBadge($aOptions);
Return
{string} html code
Parameters
- $aOptions - {array} options to describe the element
Styling:
| Key | Description |
|---|---|
| bgcolor | optional: background color (without prefix “bg”); hint: you should prefer a “type”. |
| class | optional: additional css classes |
| type | one of - [empty] - “danger” - “info” - “primary” - “secondary” - “success” - “warning” - “dark” - “gray” - “light” |
Content:
| Key | Description |
|---|---|
| text | visible text |
| title | title |
Other:
| Key | Description |
|---|---|
| id | optional: additional id attribute |
Example
$renderAdminLTE->getBadge([
'type'=>'danger',
'title'=>'Errors: 5',
'text'=>'5',
]);;