View Source Tremorx.Components.Legend (tremorx v0.1.1)
Renders a Legend menu
Summary
Functions
Renders a legend
Attributes
id
(:string
) - Defaults to"tabs"
.class
(:string
) - Defaults tonil
.active
(:string
) - Defaults tonil
.enable_slider
(:boolean
) - Defaults tonil
.- 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 tonil
.active
(:string
) - Defaults tonil
.on_click
(Phoenix.LiveView.JS
) - Defaults tonil
.
Renders a legend scroll button
Attributes
id
(:string
) (required)disable
(:string
)on_click
(Phoenix.LiveView.JS
) - Defaults tonil
.
Slots
inner_block