View Source PetalComponents.Helpers (petal_components v1.9.2)
For any helper functions used across multiple components. Ideally we keep this empty - components should be copy-pastable.
Summary
Functions
build_class(list, joiner \\ " ")
deprecated
Builds a class string from a given input list by joining them together
Functions
This function is deprecated. Phoenix handles lists of strings for classes now. No need for this..
Builds a class string from a given input list by joining them together
This code was taken from Elixirs Enum.join/2
function and optimized for
building class name (e.g removing empty strings and joining with " " by default)