class Matestack::Ui::VueJs::Components::Form::Input
Public Instance Methods
component_id()
click to toggle source
# File lib/matestack/ui/vue_js/components/form/input.rb, line 17 def component_id "input-component-for-#{attribute_key}" end
init_value()
click to toggle source
Calls superclass method
Matestack::Ui::VueJs::Components::Form::Base#init_value
# File lib/matestack/ui/vue_js/components/form/input.rb, line 25 def init_value return nil if ctx.type.to_s == "file" super end
input_attributes()
click to toggle source
# File lib/matestack/ui/vue_js/components/form/input.rb, line 21 def input_attributes attributes end
response()
click to toggle source
# File lib/matestack/ui/vue_js/components/form/input.rb, line 9 def response div class: 'matestack-ui-core-form-input' do label input_label, ":for": id if input_label input input_attributes render_errors end end
vue_props()
click to toggle source
# File lib/matestack/ui/vue_js/components/form/input.rb, line 30 def vue_props { init_value: init_value, key: key, } end