Sha256: a8be5e527b0b80f2c382257faa034ce0cc3e5f5ac8817fb026b3e0909b6001c7

Contents?: true

Size: 664 Bytes

Versions: 3

Compression:

Stored size: 664 Bytes

Contents

module MotionPrime
  class TextFieldSection < BaseFieldSection
    element :label, type: :label do
      {
        styles: [
          :base_field_label,
          :base_text_field_label,
          :"#{form_name}_field_label",
          :"#{form_name}_#{name}_field_label"
        ]
      }.merge(options[:label] || {})
    end
    element :input, type: :text_view do
      {
        styles: [
          :base_field_input,
          :base_text_field_input,
          :"#{form_name}_field_input",
          :"#{form_name}_#{name}_field_input"
        ],
        editable: true
      }.merge(options[:input] || {})
    end
    after_render :bind_text_input
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
motion-prime-0.1.7 motion-prime/sections/form/text_field_section.rb
motion-prime-0.1.6 motion-prime/sections/form/text_field_section.rb
motion-prime-0.1.5 motion-prime/sections/form/text_field_section.rb