View Source Luminous.Components (luminous v1.2.0)
This module contains a set of components that can be used to create a dashboard.
Link to this section Summary
Functions
The dashboard component is responsible for rendering all the necessary elements
Attributes
panel(Luminous.Panel) (required)
This component registers the JS event listeners for the panel spinners.
This component is responsible for rendering the panel's data. Depending on the panel's type, there will be a different visualization.
Attributes
stats(:map) (required)
This component is responsible for rendering the time range component. It consists of a date range picker and a presets dropdown.
This component is responsible for rendering the dropdown of the assigned variable.
Link to this section Functions
The dashboard component is responsible for rendering all the necessary elements:
- title
- variables
- time range selector
- panels
Additinally, it registers callbacks for reacting to panel loading states.
attributes
Attributes
dashboard(Luminous.Dashboard) (required)panel_data(:map) (required)
attributes
Attributes
panel(Luminous.Panel) (required)
This component registers the JS event listeners for the panel spinners.
This component is responsible for rendering the panel's data. Depending on the panel's type, there will be a different visualization.
attributes
Attributes
panel(Luminous.Panel) (required)variables(:list) (required)panel_data(:map) - not used in table panel.time_range_selector(Luminous.TimeRangeSelector) - only for the chart panel.
attributes
Attributes
stats(:map) (required)
This component is responsible for rendering the time range component. It consists of a date range picker and a presets dropdown.
attributes
Attributes
dashboard(Luminous.Dashboard) (required)
This component is responsible for rendering the dropdown of the assigned variable.
attributes
Attributes
variable(Luminous.Variable) (required)