Surface.Components.Form.DateTimeSelect (surface v0.1.0) View Source

Generates select tags for datetime.

Provides a wrapper for Phoenix.HTML.Form's datetime_select/3 function.

All options passed via opts will be sent to datetime_select/3, value can be set directly and will override anything in opts.

Examples

<DateTimeSelect form="user" field="born_at" />

<Form for={{ :user }}>
  <DateTimeSelect field={{ :born_at }} />
</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