Class: Glib::JsonUi::ViewBuilder::Fields::Password

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

Overview

Password input field with masked input.

Masks the input text and provides a toggle button to show/hide the password. Never pre-fills password values for security.

Examples:

Password field with icon and hint

form.fields_password \
  name: 'user[password]',
  width: 'matchParent',
  label: 'Password',
  hint: 'Should contain at least 6 characters',
  leftIcon: 'lock',
  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