View Source PetalComponents.Input (petal_components v1.4.0)
Renders pure inputs (no label or errors).
Summary
Functions
Attributes
id
(:any
) - Defaults tonil
.name
(:any
)label
(:string
)value
(:any
)type
(:string
) - Defaults to"text"
.field
(Phoenix.HTML.FormField
) - a form field struct retrieved from the form, for example: @form[:email].checked
(:boolean
) - the checked flag for checkbox inputs.prompt
(:string
) - the prompt for select inputs. Defaults tonil
.options
(:list
) - the options to pass to Phoenix.HTML.Form.options_for_select/2.multiple
(:boolean
) - the multiple flag for select inputs. Defaults tofalse
.class
(:string
) - the class to add to the input. Defaults tonil
.- Global attributes are accepted.
Functions
Attributes
id
(:any
) - Defaults tonil
.name
(:any
)label
(:string
)value
(:any
)type
(:string
) - Defaults to"text"
.field
(Phoenix.HTML.FormField
) - a form field struct retrieved from the form, for example: @form[:email].checked
(:boolean
) - the checked flag for checkbox inputs.prompt
(:string
) - the prompt for select inputs. Defaults tonil
.options
(:list
) - the options to pass to Phoenix.HTML.Form.options_for_select/2.multiple
(:boolean
) - the multiple flag for select inputs. Defaults tofalse
.class
(:string
) - the class to add to the input. Defaults tonil
.- Global attributes are accepted.