You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -64,7 +65,13 @@ The title of the widget displayed at the top left
64
65
65
66
**value**
66
67
67
-
The value of the widget displayed under the title: typically the total number of records
68
+
The value of the widget displayed under the title: typically the total number of records.
69
+
70
+
However, more elaborate data can be passed as a string, like an htmltable with tabulated data. See how that is done in `src/Users/Module.php` with a private method `buildTableUsersByGroup()`. **value** can also be passed to the stats item by a standard `addValue()` method, see the same file for an example.
71
+
72
+
**id**
73
+
74
+
A uniwue widget ID throughout application (make it descriptive and add extra symbols to make sure the uniqueness).
68
75
69
76
**url**
70
77
@@ -74,26 +81,25 @@ The address that displays the list of objects on your module. It will be associa
74
81
75
82
The FontAwesome icon
76
83
77
-
78
-
79
84
## Configuration
80
85
81
86
All settings are available in the `Bonfire\Widgets\Config\Stats` class, or in the admin settings area.
82
87
83
-
In the administration settings area, you can choose to:
88
+
In the administration settings area, you can also choose to:
84
89
- Display the "View Detail" link
85
90
86
91
---
87
92
88
-
# Charts widget
93
+
## Charts widget
89
94
90
95
Adding a new chart widget is done in the `initAdmin` method of your `Module.php` file, similar to adding amenu:
0 commit comments