Class: Glib::JsonUi::ViewBuilder::Fields::Hidden
- Inherits:
-
Text
- Object
- JsonUiElement
- View
- AbstractField
- Text
- Glib::JsonUi::ViewBuilder::Fields::Hidden
- Defined in:
- app/helpers/glib/json_ui/view_builder/fields.rb
Overview
Hidden input field not visible to users.
Submitted with the form but not displayed. Useful for passing data like IDs, tokens, or state that users shouldn’t see or modify.
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
327 328 329 330 331 332 333 |
# File 'app/helpers/glib/json_ui/view_builder/fields.rb', line 327 def created # Hidden fields don't need labels or placeholders @label = '' @placeholder = '' super end |