SurfaceBulma.Form.RadioButton (surface_bulma v0.6.0)
The radio button component as defined in https://bulma.io/documentation/form/radio/
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
andPhoenix.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 respectiveRadioButton
. 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
- keyword lists - each keyword list is expected to have the keys
Slots
- default
Summary
Functions
Callback implementation for Surface.Component.render/1
.
Functions
Link to this function
render(assigns)
Callback implementation for Surface.Component.render/1
.