Class: Glib::JsonUi::ViewBuilder::Fields::Textarea

Inherits:
Text show all
Defined in:
app/helpers/glib/json_ui/view_builder/fields.rb

Overview

Multi-line text input field.

For longer text entries that need multiple lines, such as comments, descriptions, or notes.

Examples:

Textarea with character limit

form.fields_textarea \
  prop: :words,
  name: 'user[words]',
  width: 'matchParent',
  label: 'Textarea with maxLength',
  maxLength: 1000,
  clearable: true

See Also:

  • Garage example

Instance Attribute Summary

Attributes inherited from JsonUiElement

#json, #page

Method Summary

Methods inherited from AbstractField

#autoValidate, #context, #created, #default_url_options, #determine_value, #disableDirtyCheck, #hint, #hint_args, #label, #label_args, #name, #placeholder, #placeholder_args, #prop, #validation, #value

Methods inherited from View

component_name

Methods inherited from JsonUiElement

#initialize, #props

Constructor Details

This class inherits a constructor from Glib::JsonUi::JsonUiElement