PhoenixKitWeb.Components.Core.Select (phoenix_kit v1.5.1)

View Source

Provides a default select UI component.

Summary

Functions

select(assigns)

Attributes

  • field (Phoenix.HTML.FormField)
  • id (:any) - Defaults to nil.
  • name (:any)
  • label (:string) - Defaults to nil.
  • value (:any)
  • options (:list)
  • multiple (:boolean) - Defaults to false.
  • prompt (:string) - Defaults to nil.
  • errors (:list) - Defaults to [].
  • Global attributes are accepted. Supports all globals plus: ["autocomplete", "cols", "maxlength", "disabled", "placeholder", "readonly", "required", "rows"].