Class: Inputs::EffectiveStaticControl::Input
Instance Method Summary
collapse
#field_name, #initialize, #js_options, #options, #value
Instance Method Details
6
7
8
|
# File 'app/models/inputs/effective_static_control/input.rb', line 6
def default_input_html
{class: 'form-control-static'}
end
|
#html_options ⇒ Object
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_html ⇒ Object
10
11
12
|
# File 'app/models/inputs/effective_static_control/input.rb', line 10
def to_html
content_tag(:p, value, tag_options)
end
|