Class: Glib::JsonUi::ViewBuilder::Fields::Text

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

Overview

Basic text input field for single-line text entry.

The most common field type, supporting various customizations like icons, prefix/suffix text, character limits, and typing event handlers.

Examples:

Basic text field

form.fields_text name: 'user[name]', width: 'matchParent', label: 'Name'

Text field with model property binding

form.fields_text \
  prop: :name,
  name: 'user[name]',
  width: 'matchParent',
  label: 'Name'

See Also:

  • Garage example

Direct Known Subclasses

Check, Email, File, Hidden, Number, Password, RichText, Textarea, Timer, Url

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