Skip to content
Snippets Groups Projects
Commit 220b8a11 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

add docpage for smallbox

parent d4e894e0
No related branches found
No related tags found
1 merge request!1Update 2022 12
## Smallbox
Solid colored box to highlight a single value; optional with a link
### Syntax
```php
$renderAdminLTE->getSmallbox($aOptions);
```
### Return
{string} html code
### Parameters
* $aOptions - {array} options to describe the element
Styling:
Key | Description
--- | ---
type | one of [none]\|danger\|dark\|info\|primary\|secondary\|success\|warning
shadow | size of shadow; one of [none] (=default: between small and regular)|none|small|regular|large
Content:
Key | Description
--- | ---
icon | icon css class; eg. fontawesome "far fa-thumbs-up"
text | visible text
number | Value as string, eg. to format large integers
url | optional: url to set a link on the bottom
linktext | used if a url was given: linked text
### Example
```php
$renderAdminLTE->getSmallbox(array (
'type' => 'info',
'icon' => 'fas fa-shopping-cart',
'text' => 'New orders',
'number' => '150',
'url' => '#',
'linktext' => 'More info',
))
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment