Class: Glib::JsonUi::ViewBuilder::Fields::Number

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

Overview

Numeric input field with number-specific validation.

Extends Text field with min/max constraints and decimal precision support. Automatically validates that input is a valid number.

Examples:

Numeric field with validation

form.fields_number \
  prop: :age,
  name: 'user[age]',
  width: 'matchParent',
  label: 'Age',
  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