SurfaceBulma.Form.RadioButton (surface_bulma v0.5.1)

The radio button component as defined in https://bulma.io/documentation/form/radio/

properties

Properties

  • field :atom, required: true - The the field on the changeset
  • disabled :boolean, default: false - Disable selection
  • opts :keyword, default: [] - Any opts you want to pass on to internal Surface.RadioButton and Phoenix.HTML.Form.radio_button/3
  • class :css_class, default: default - Additional CSS classes
  • options :list - options are expected to be an enumerable which will be used to generate each respective RadioButton. The enumerable may have:
    • keyword lists - each keyword list is expected to have the keys :key and :value. Additional keys such as :disabled may be given to customize the option
    • two-item tuples - where the first element is an atom, string or integer to be used as the option label and the second element is an atom, string or integer to be used as the option value
    • atom, string or integer - which will be used as both label and value for the generated select

slots

Slots

  • default

Link to this section Summary

Link to this section Functions

Link to this function

render(assigns)

Callback implementation for Surface.Component.render/1.