Class: Glib::JsonUi::ViewBuilder::Fields::Email
- Inherits:
-
Text
- Object
- JsonUiElement
- View
- AbstractField
- Text
- Glib::JsonUi::ViewBuilder::Fields::Email
- 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.
Instance Attribute Summary
Attributes inherited from JsonUiElement
Instance Method Summary collapse
Methods inherited from AbstractField
#autoValidate, #context, #default_url_options, #determine_value, #disableDirtyCheck, #hint, #hint_args, #label, #label_args, #name, #placeholder, #placeholder_args, #prop, #validation, #value
Methods inherited from View
Methods inherited from JsonUiElement
action, any, array, badgeable, bool, color, component_name, date, date_time, enum, float, hash, icon, #initialize, int, length, menu, panels_builder, #props, required, singleton_array, string, text, url, views
Constructor Details
This class inherits a constructor from Glib::JsonUi::JsonUiElement
Instance Method Details
#created ⇒ Object
272 273 274 275 276 277 278 279 |
# File 'app/helpers/glib/json_ui/view_builder/fields.rb', line 272 def created super # Assume format validation handled by frontend if @validation.present? && @validation[:format].present? @validation.delete(:format) json.validation @validation end end |