Sha256: 3a954b518d7157956d459cc666b63f6a1e746495a5cdf13ce20b452a0ff82029

Contents?: true

Size: 684 Bytes

Versions: 5

Compression:

Stored size: 684 Bytes

Contents

module MotionPrime
  class PasswordFieldSection < BaseFieldSection
    element :label, type: :label do
      {
        styles: [
          :base_field_label,
          :base_password_field_label,
          :"#{form_name}_field_label",
          :"#{form_name}_#{name}_field_label"
        ]
      }.merge(options[:label] || {})
    end
    element :input, type: :text_field do
      {
        styles: [
          :base_field_input,
          :base_password_field_input,
          :"#{form_name}_field_input",
          :"#{form_name}_#{name}_field_input"
        ],
        secureTextEntry: true
      }.merge(options[:input] || {})
    end
    after_render :bind_text_input
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
motion-prime-0.2.1 motion-prime/sections/form/password_field_section.rb
motion-prime-0.2.0 motion-prime/sections/form/password_field_section.rb
motion-prime-0.1.7 motion-prime/sections/form/password_field_section.rb
motion-prime-0.1.6 motion-prime/sections/form/password_field_section.rb
motion-prime-0.1.5 motion-prime/sections/form/password_field_section.rb