Sha256: afa7fbcb341c5e42dfcfda3331d322b3e28a4e8e5bab907d5028b4526d3493b1
Contents?: true
Size: 998 Bytes
Versions: 3
Compression:
Stored size: 998 Bytes
Contents
module MotionPrime class SelectFieldSection < BaseFieldSection element :label, type: :label do { styles: [ :base_field_label, :base_select_field_label, :"#{form_name}_field_label", :"#{form_name}_#{name}_field_label" ] }.merge(options[:label] || {}) end element :button, type: :button do { styles: [ :base_select_field_button, :"#{form_name}_field_button", :"#{form_name}_#{name}_field_button" ], }.merge(options[:button] || {}) end element :arrow, type: :image do { styles: [ :base_select_field_arrow, :"#{form_name}_field_arrow", :"#{form_name}_#{name}_field_arrow" ], }.merge(options[:arrow] || {}) end after_render :bind_select_button def bind_select_button view(:button).on :touch do form.send(options[:action]) if options[:action] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems