Catalog Collections

<.toggle_list>

ConnieUI.Collections

Contracts
Available? Title Preview
Director agreement
Crew contract
Releases
Available? Title Preview
Talent release
Location permit
Minor's release
HEEx
<.template_list controls=id="catalog-toggle-list" search_placeholder="Search templates" on_toggle_group="toggle_group" on_search="search" groups={@groups} />

Controls

:string
:string
:string
:string

Event name for group toggle

:string

Event name for item toggle

:string

Event name for search

:string

Event name for filter change

Set by the example

groups filter_options target

Docs

Renders a toggle selection list with grouped items. ## Group structure Each group should be a map with: - `:id` - Unique identifier for the group - `:name` - Display name for the group header - `:items` - List of items in the group - `:selected` - Boolean indicating if all items in group are selected - `:expanded` - Boolean indicating if group is expanded (optional, defaults to true) - `:heading` - Section this group belongs under (optional) ## Sections Groups carrying the same `:heading` read as one section, titled once above the first of them. Pass the groups in the order they should appear; a heading is drawn whenever it differs from the previous group's, so a heading repeated later in the list titles a second section rather than being swallowed. Groups with no `:heading` are untitled, which is how a list of one section's worth of groups keeps its current shape. ## Item structure Each item should be a map that will be passed to the column slots. The item should have at minimum an `:id` field.
Attribute Type Default Description
id * :string
groups * :list
List of group maps with :name, :id, :items, :selected and optional :heading keys
search_placeholder :string "Search..."
search_value :string ""
on_toggle_group :string nil
Event name for group toggle
on_toggle_item :string nil
Event name for item toggle
on_search :string nil
Event name for search
filter_options :list []
List of filter options for dropdown
on_filter :string nil
Event name for filter change
target :any nil
Target for phx events (e.g., @myself for LiveComponents)
Slot Slot attributes Description
:col * label, class