Widget
A dashboard widget base class.
Description #
Source #
Changelog #
Version | Description |
---|---|
4.9.0 | Introduced. |
Methods #
- get_empty_state_text — Returns a widget empty state text. Default is 'No data'. It is used when there is no data to show.
- get_view_name — Returns a widget view name.
- get_view_path — Returns a widget view path.
- load — Loads a widget if it's not loaded, it is executed before rendering.
- load_data — Loads required data.
- render — Renders a widget.