FrappeUIPhx.Components.Textarea (frappe_ui_phx v0.3.1)

Copy Markdown View Source

Campo de várias linhas; mesmo contrato de FrappeUIPhx.Components.TextInput.

Summary

Functions

textarea(assigns)

Attributes

  • field (Phoenix.HTML.FormField) - Defaults to nil.
  • id (:any) - Defaults to nil.
  • name (:any)
  • value (:any)
  • variant (:atom) - Defaults to :subtle. Must be one of :subtle, :outline, or :ghost.
  • size (:atom) - Defaults to :sm. Must be one of :xs, :sm, :md, or :lg.
  • rows (:integer) - Defaults to 3.
  • errors (:list) - Defaults to [].
  • disabled (:boolean) - Defaults to false.
  • class (:any) - Defaults to nil.
  • Global attributes are accepted. Supports all globals plus: ["autofocus", "cols", "form", "maxlength", "minlength", "placeholder", "readonly", "required"].