Class: Matestack::Ui::VueJs::Components::App

Inherits:
Vue
  • Object
show all
Defined in:
lib/matestack/ui/vue_js/components/app.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, #vue_props

Constructor Details

This class inherits a constructor from Matestack::Ui::VueJs::Vue

Instance Method Details

#loading_state_elementObject

# def create_children &block # self.app_wrapper do # self.response &block # end # end

def app_wrapper

vue_component do
  div class: 'matestack-app-wrapper' do
    yield
  end
end

end



40
41
# File 'lib/matestack/ui/vue_js/components/app.rb', line 40

def loading_state_element
end

#responseObject

def create_children &block

div id: context.id || "matestack-ui" do
  vue_component do
    self.response &block
  end
end

end



19
20
21
22
23
# File 'lib/matestack/ui/vue_js/components/app.rb', line 19

def response
  div class: 'matestack-app-wrapper' do
    yield
  end
end