AppGini Helper Indicators Library¶
Our PHP library allows you to append various, self-refreshing indicators to your navbar and to control the output by using PHP hooks.
User Interface (UI)¶
Customizable indicators in top navbar Automatically wraps on smaller screens
Use cases¶
Here are some use cases which can give benefit to your application and to your users - Show number of tasks assigned to current user - Show number of incoming messages - Show number of open orders - Show sales totals per day - Show number of open issues - Show working time of current user - and so much more
Configuration¶
Initial configuration of indicators with just a few lines of PHP code
- Easy to understand code for appending one or more indicators
- Configurable interval (in seconds) per indicator
- Each indicator will be displayed when page loads
- If configured, each indicator will be periodically reloaded automatically
- Four different modes
- Reoad every n seconds (always)
- Reload every n seconds if browser (-tab) is active
- Reload every n seconds if browser (-tab) is inactive
- Load once (on page-load)
- No Javascript required
Customization¶
The browser will periodically reload information from the server per indicator and update the navbar-indicators automatically.
- Change text / value
- Change icon (Glyphicon)
- Change coloured bullet red, yellow, green, orange, black, white, blue, purple, pink
- Conditionally hide/show indicators
- Tooltip on mouseover
- Indicators can act as a link for example for loading the tasks-page showing tasks of current user
- No Javascript required
Styling¶
You can use CSS to modify the style, for example change background-color or border of indicators. You can even change the style during auto-reload and for active/inactive indicators separately.
Example¶
Initialize library¶
Just one command for initialization of our new PHP library.
1 2 3 4 |
|
Info
This init-command belongs in hooks/header-extras.php
Initialize indicators¶
Configure various indicators in indicator_loader()
hook:
1 2 3 4 5 6 7 8 9 10 |
|
Info
This belongs in hooks/__global.php
Return information¶
Return values per indicator in indicator_handler()
hook:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|
Info
This belongs in hooks/__global.php
Optional CSS-styling¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
Custom CSS basics
You can put the CSS statements given above right inside a <style>...</style>
-tag and put it in hooks/header-extras.php
.
Or you can create a new css-file, put the content given above there, save it and include this file as <link>
-tag in hooks/header-extras.php
.
Fully integrated with AppGini applications¶
As this is a serverside PHP library, you can use all known PHP functions, for example return values depending on the currently logged in user or group.
There is more built-in, for example hiding indicators on small devices or automatically calling javascript functions when values have changed. This library can give so much more benefit to you!
Pricing & Purchase¶
All pricing information for our products along with discounts are available in our shop.