Class: Matestack::Ui::VueJs::Components::PageSwitch
- Defined in:
- lib/matestack/ui/vue_js/components/page_switch.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
#response ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/matestack/ui/vue_js/components/page_switch.rb', line 9 def response div class: 'matestack-page-container', 'v-bind:class': '{ "loading": vc.loading === true }' do if Matestack::Ui::Core::Context.layout.respond_to? :loading_state_element div class: 'loading-state-element-wrapper', 'v-bind:class': '{ "loading": vc.loading === true }' do Matestack::Ui::Core::Context.layout.loading_state_element end end div class: 'matestack-page-wrapper', 'v-bind:class': '{ "loading": vc.loading === true }' do div 'v-if': 'vc.asyncPageTemplate == null' do div class: 'matestack-page-root' do yield end end div 'v-if': 'vc.asyncPageTemplate != null' do div class: 'matestack-page-root' do Matestack::Ui::Core::Base.new('matestack-ui-core-runtime-render', ':template': 'vc.asyncPageTemplate', ':vc': 'vc') end end end end end |