Keenmate.WebMultiselect.FormHelpers (Keenmate.WebMultiselect v1.0.0-rc.2)

Copy Markdown View Source

Binds a Phoenix.HTML.FormField to the <.web_multiselect> component's :id, :name, and :value assigns.

Summary

Functions

Resolves the field assign into concrete id, name, and value assigns.

Functions

assign_from_field(assigns)

@spec assign_from_field(map()) :: map()

Resolves the field assign into concrete id, name, and value assigns.

When assigns.field is a Phoenix.HTML.FormField, its id, name, and value fill in any unset assign. Explicit assigns win — passing both field and id keeps the explicit id.