Class: Glib::JsonUi::ViewBuilder::Fields::Email

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

Overview

Email input field with email format validation.

Uses browser’s built-in email validation and provides appropriate keyboard on mobile devices.

Examples:

Email field with clearable button

form.fields_email \
  name: 'user[email]',
  width: 'matchParent',
  label: 'Email',
  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