View Source Tremorx.Components.Legend (tremorx v0.1.1)

Renders a Legend menu

Summary

Functions

Renders a legend

Renders a legend item

Renders a legend scroll button

Functions

Renders a legend

Attributes

  • id (:string) - Defaults to "tabs".
  • class (:string) - Defaults to nil.
  • active (:string) - Defaults to nil.
  • enable_slider (:boolean) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • legend_item (required) - Accepts attributes:
    • name (:string) (required)
    • color (:string) (required)
    • class (:string)
    • on_click (Phoenix.LiveView.JS)
  • scroll_left_icon
  • scroll_right_icon

Renders a legend item

Attributes

  • name (:string) (required)
  • color (:string) (required)
  • class (:string) - Defaults to nil.
  • active (:string) - Defaults to nil.
  • on_click (Phoenix.LiveView.JS) - Defaults to nil.

Renders a legend scroll button

Attributes

Slots

  • inner_block