View Source Luminous.Components (luminous v2.0.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 (:map) (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 (:map) (required)
  • panel_data (:map) (required)

attributes

Attributes

  • panel (:map) (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 (:map) (required)
  • variables (:list) (required)
  • panel_data (:map) - not used in table panel.
  • time_range_selector (Luminous.TimeRangeSelector) - only for the chart panel.
Link to this function

panel_statistics(assigns)

View Source

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 (:map) (required)

This component is responsible for rendering the dropdown of the assigned variable.

attributes

Attributes