View Source Bonfire.UI.Common.WidgetModule behaviour (Bonfire v0.9.11-social-beta.6)

Widgets: components that can be added to the dashboard or sidebards

Summary

Callbacks

Declares a widget component

Functions

Get a widget identified by module

Load all widgets at once

Load widgets for an extension

Callbacks

declared_widget()

@callback declared_widget() :: any()

Declares a widget component

Functions

app_modules()

modules()

@spec modules() :: [atom()]

Callback implementation for Bonfire.Common.ExtensionBehaviour.modules/0.

widget(module)

Get a widget identified by module

widget_function_error(error, args)

widgets()

Load all widgets at once

widgets(extension)

Load widgets for an extension