View Source Luminous.Panel behaviour (luminous v1.3.0)
A panel represents a single visual element (chart) in a dashboard contains many queries.
Link to this section Summary
Callbacks
transform a query result to view data acc. to the panel type
Functions
Initialize a panel at compile time.
Returns the DOM id of the given panel.
Refresh all panel queries.
Link to this section Types
@type panel_type() :: :chart | :stat | :table
Link to this section Callbacks
@callback transform(Luminous.Query.Result.t()) :: any()
transform a query result to view data acc. to the panel type
Link to this section Functions
@spec define(atom(), binary(), panel_type(), [Luminous.Query.t()], Keyword.t()) :: t()
Initialize a panel at compile time.
Returns the DOM id of the given panel.
Refresh all panel queries.