SelectoComponents.Dashboard.WidgetRegistry (selecto_components v0.3.20)

Registry for available dashboard widgets. Manages widget types, configurations, and data sources.

Link to this section Summary

Functions

Creates a new widget instance with default configuration.

Gets data source configuration for a widget.

Gets configuration for a specific widget type.

Lists all available widget types.

Updates widget data based on its configuration.

Registers a custom widget type.

Validates widget configuration against its schema.

Link to this section Functions

Link to this function

create_widget(type, overrides \\ %{})

Creates a new widget instance with default configuration.

Link to this function

get_data_source(widget)

Gets data source configuration for a widget.

Link to this function

get_widget_config(type)

Gets configuration for a specific widget type.

Link to this function

list_available()

Lists all available widget types.

Link to this function

refresh_widget_data(widget, data_context \\ %{})

Updates widget data based on its configuration.

Link to this function

register_custom_widget(definition)

Registers a custom widget type.

Link to this function

validate_config(type, config)

Validates widget configuration against its schema.