ExTeal.Panel (ExTeal v0.21.0) View Source
Separates fields on the detail page into panels
Link to this section Summary
Functions
Given a resource, uses the fields definition to find the panels
Given a list of fields and a list of panels, assigns the panel to each field
Add helper text for the panel
Limit the amount of fields that show by default on the detail page Other fields are hidden behind a "Show more" button
Creates a new panel
Link to this section Types
Specs
options() :: %{ optional(:helper_text) => String.t(), optional(:limit) => non_neg_integer(), optional(:apply_to_all) => map() }
Specs
Link to this section Functions
Given a resource, uses the fields definition to find the panels
Specs
give_panel_to_fields([ExTeal.Field.t()], module()) :: [ExTeal.Field.t()]
Given a list of fields and a list of panels, assigns the panel to each field
Specs
Add helper text for the panel
Specs
Limit the amount of fields that show by default on the detail page Other fields are hidden behind a "Show more" button
Specs
new(String.t(), [ExTeal.Field.t()], options()) :: t()
Creates a new panel