View Source Doggo (Doggo v0.8.2)
This module only contains miscellaneous functions.
The components are defined in Doggo.Components
.
Summary
JS
Hides the modal with the given ID.
Shows the modal with the given ID.
Shows the tab with the given index of the tabs/1
component with the given
ID.
Functions
Takes a modifier attribute name and value and returns a CSS class name.
Returns all modifier classes defined in the given components module.
JS
Hides the modal with the given ID.
Example
<.link phx-click={hide_modal("pet-modal")}>hide</.link>
Shows the modal with the given ID.
Example
<.link phx-click={show_modal("pet-modal")}>show</.link>
Shows the tab with the given index of the tabs/1
component with the given
ID.
Example
Doggo.show_tab("my-tabs", 2)
Functions
Takes a modifier attribute name and value and returns a CSS class name.
This function is used as a default for the class_name_fun
option.
Example
iex> modifier_class_name(:size, "large")
"is-large"
Returns all modifier classes defined in the given components module.
Usage
iex> modifier_classes(MyAppWeb.CoreComponents)
[
"is-large",
"is-medium",
"is-primary",
"is-secondary",
"is-small"
]