Class: Matestack::Ui::VueJs::Components::Collection::Content

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

Instance Method Summary collapse

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::Vue

Instance Method Details

#responseObject



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

def response
  div class: "matestack-ui-core-collection-content" do
    yield
  end
end

#vue_propsObject



18
19
20
21
22
23
24
25
# File 'lib/matestack/ui/vue_js/components/collection/content.rb', line 18

def vue_props
  {
    id: ctx.id,
    init_limit: ctx.init_limit,
    filtered_count: ctx.filtered_count,
    base_count: ctx.base_count
  }
end