View Source Surface.Components.Form.MultipleSelect (surface v0.11.4)

Defines a select.

Provides a wrapper for Phoenix.HTML.Form's multiple_select/4 function.

All options passed via opts will be sent to multiple_select/4, class can be set directly and will override anything in opts.

Properties

  • form :form, from_context: {Surface.Components.Form, :form} - The form identifier
  • field :any, from_context: {Surface.Components.Form.Field, :field} - The field name
  • id :string - The id of the corresponding select field
  • name :string - The name of the corresponding select field
  • class :css_class - The CSS class for the underlying tag
  • options :any, default: [] - The options in the select
  • selected :any - The default selected option
  • opts :keyword, default: [] - Options list

Summary

Functions

Callback implementation for Surface.Component.render/1.