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

Defines options to be used inside a select.

This is useful when building the select by hand.

Provides a wrapper for Phoenix.HTML.Form's options_for_select/2 function.

Properties

  • options :any, default: [] - The options in the select
  • selected :any, default: nil - The selected values

Link to this section Summary

Link to this section Functions

Callback implementation for Surface.Component.render/1.