Update Report widget docblock

This commit is contained in:
Oscar Arzola 2017-06-02 23:53:27 -05:00
parent a7d20211ae
commit 8a40e1cc89
1 changed files with 14 additions and 2 deletions

View File

@ -189,8 +189,20 @@ class WidgetManager
}
}
/*
* Extensibility
/**
* @event system.reportwidgets.extendItems
* Allows to append or remove a report widget.
*
* You will have access to the WidgetManager instance and be able to call the appropiated methods
* $manager->registerReportWidget();
* $manager->removeReportWidget();
*
* Example usage:
*
* Event::listen('system.reportwidgets.extendItems', function($manager) {
* $manager->removeReportWidget('Acme\ReportWidgets\YourWidget');
* });
*
*/
Event::fire('system.reportwidgets.extendItems', [$this]);