Raxol.Components.Dashboard.WidgetContainer (Raxol v0.3.0)

View Source

A container component for dashboard widgets. Provides a frame, title bar (optional), and potentially drag/resize handles. Renders the actual widget content passed to it.

Summary

Functions

broadcast(msg)

command(cmd)

mount(state)

Callback implementation for Raxol.UI.Components.Base.Component.mount/1.

render(state, props)

Renders the widget container frame and its content.

Requires props:

  • bounds: %{x, y, width, height} - The absolute bounds calculated by GridContainer.
  • widget_config: The configuration map for the widget being rendered.
                 Used for title, etc. (%{id: _, type: _, title: _, ...}).
  • content: The actual View element(s) representing the widget's content.

schedule(msg, delay)

unmount(state)

Callback implementation for Raxol.UI.Components.Base.Component.unmount/1.