Widgets
You can inject widgets which can be shown on the dashboard by simply implementing the Widgets
provider and adding a method provideWidgets
to your plugin like this:
Available methods
Method | Description | Example | Arguments | |
__construct | Creates a new Widget |
| string component: the name of the component, string title: The title | |
width | Sets the width of the widget |
| int width: The width between 3 and 12 | |
icon | An icon show next to the title |
| string icon: The name of the icon | |
parameters | Parameters passed to the component |
| array parameters: The parameters | |
permission | Display/Hide the widget based on a permission |
| string permission: The key of a permission, array args: Additional arguments |
Last updated