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

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 - The form identifier
  • field :string - 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

Link to this section Summary

Link to this section Functions

Callback implementation for Surface.Component.render/1.