Class: Inputs::EffectiveStaticControl::Input

Inherits:
Effective::FormInput show all
Defined in:
app/models/inputs/effective_static_control/input.rb

Instance Method Summary collapse

Methods inherited from Effective::FormInput

#field_name, #initialize, #js_options, #options, #value

Constructor Details

This class inherits a constructor from Effective::FormInput

Instance Method Details

#default_input_htmlObject



6
7
8
# File 'app/models/inputs/effective_static_control/input.rb', line 6

def default_input_html
  {class: 'form-control-static'}
end

#html_optionsObject



14
15
16
17
18
# File 'app/models/inputs/effective_static_control/input.rb', line 14

def html_options
  super.tap do |html_options|
    html_options[:class].delete('form-control')
  end
end

#to_htmlObject



10
11
12
# File 'app/models/inputs/effective_static_control/input.rb', line 10

def to_html
  (:p, value, tag_options)
end