Surface.Components.Form.OptionsForSelect (surface v0.2.1) 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 Phoenix.LiveComponent.mount/1.

Callback implementation for Phoenix.LiveComponent.render/1.

Callback implementation for Phoenix.LiveComponent.update/2.