View Source Luminous.Panel (luminous v0.9.1)
A panel represents a single visual element (chart) in a dashboard contains many queries.
Link to this section Summary
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
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.
@spec refresh(t(), [Luminous.Variable.t()], Luminous.TimeRange.t()) :: [ Luminous.Query.DataSet.t() ]
Refresh all panel queries.