Module: Effective::FormBuilderInputs

Defined in:
app/models/effective/form_builder_inputs.rb

Instance Method Summary collapse

Instance Method Details

#effective_date_picker(method, options = {}) ⇒ Object



7
8
9
# File 'app/models/effective/form_builder_inputs.rb', line 7

def effective_date_picker(method, options = {})
  Inputs::EffectiveDatePicker::Input.new(@object, @object_name, @template, method, merged_input_js_options(options)).to_html
end

#effective_date_time_picker(method, options = {}) ⇒ Object



3
4
5
# File 'app/models/effective/form_builder_inputs.rb', line 3

def effective_date_time_picker(method, options = {})
  Inputs::EffectiveDateTimePicker::Input.new(@object, @object_name, @template, method, merged_input_js_options(options)).to_html
end

#effective_select(method, options_tag = nil, options = {}) ⇒ Object



15
16
17
18
19
20
# File 'app/models/effective/form_builder_inputs.rb', line 15

def effective_select(method, options_tag = nil, options = {})
  options[:collection] = options_tag
  options[:label_method] = :to_s
  options[:value_method] = :to_s
  Inputs::EffectiveSelect::Input.new(@object, @object_name, @template, method, merged_input_js_options(options)).to_html
end

#effective_static_control(method, options = {}) ⇒ Object



11
12
13
# File 'app/models/effective/form_builder_inputs.rb', line 11

def effective_static_control(method, options = {})
  Inputs::EffectiveStaticControl::Input.new(@object, @object_name, @template, method, merged_input_js_options(options)).to_html
end