Class: Glib::JsonUi::ViewBuilder::Fields::UrlFragment

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

Overview

Hidden field that captures URL fragment (hash) value.

Extracts the fragment portion of the URL (everything after #) and populates it as the field value. Useful for secure data passing where the fragment is not sent to the server in HTTP requests.

Examples:

Capture URL fragment and auto-submit form

form.fields_urlFragment \
  name: 'url_fragment',
  onResolveValue: ->(action) do
    action.forms_submit
  end

Instance Attribute Summary

Attributes inherited from JsonUiElement

#json, #page

Method Summary

Methods inherited from Hidden

#created

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

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