Surface.Components.Form.TimeSelect (surface v0.1.0) View Source
Generates select tags for time.
Provides a wrapper for Phoenix.HTML.Form's time_select/3
function.
All options passed via opts
will be sent to time_select/3
, value
can be
set directly and will override anything in opts
.
Examples
<TimeSelect form="alarm" field="time" />
<Form for={{ :alarm }}>
<TimeSelect field={{ :time }} />
</Form>
Properties
- form :form - The form identifier.
- field :string - The field name.
- value :any - Value to pre-populate the select.
- opts :keyword, default: [] - Options list.
Link to this section Summary
Functions
Callback implementation for Phoenix.LiveComponent.mount/1
.
Callback implementation for Phoenix.LiveComponent.render/1
.
Link to this section Functions
Callback implementation for Phoenix.LiveComponent.mount/1
.
Callback implementation for Phoenix.LiveComponent.render/1
.