Class: Matestack::Ui::VueJs::Components::Collection::Filter

Inherits:
Form::Form
  • Object
show all
Defined in:
lib/matestack/ui/vue_js/components/collection/filter.rb

Instance Method Summary collapse

Methods inherited from Form::Form

#attributes, #for_attribute, #for_object_primary_key, #form_method, #initialize, #is_nested_form?, #multipart_option, #response

Methods inherited from Vue

#base_vue_props, #component_attributes, #component_id, #component_uid, #create_children, inherited, #initialize, #matestack_ui_vuejs_ref, #vue_component, vue_name, #vue_name

Constructor Details

This class inherits a constructor from Matestack::Ui::VueJs::Components::Form::Form

Instance Method Details

#for_optionObject



19
20
21
# File 'lib/matestack/ui/vue_js/components/collection/filter.rb', line 19

def for_option
  OpenStruct.new(ctx.filter_state)
end

#vue_propsObject



13
14
15
16
17
# File 'lib/matestack/ui/vue_js/components/collection/filter.rb', line 13

def vue_props
  super.merge({
    id: ctx.id
  })
end