Module: Matestack::Ui::VueJs::Components

Included in:
Core::Base
Defined in:
lib/matestack/ui/vue_js/components.rb,
lib/matestack/ui/vue_js/components/app.rb,
lib/matestack/ui/vue_js/components/async.rb,
lib/matestack/ui/vue_js/components/cable.rb,
lib/matestack/ui/vue_js/components/action.rb,
lib/matestack/ui/vue_js/components/toggle.rb,
lib/matestack/ui/vue_js/components/onclick.rb,
lib/matestack/ui/vue_js/components/isolated.rb,
lib/matestack/ui/vue_js/components/form/base.rb,
lib/matestack/ui/vue_js/components/form/form.rb,
lib/matestack/ui/vue_js/components/form/input.rb,
lib/matestack/ui/vue_js/components/form/radio.rb,
lib/matestack/ui/vue_js/components/transition.rb,
lib/matestack/ui/vue_js/components/form/select.rb,
lib/matestack/ui/vue_js/components/page_switch.rb,
lib/matestack/ui/vue_js/components/form/context.rb,
lib/matestack/ui/vue_js/components/form/checkbox.rb,
lib/matestack/ui/vue_js/components/form/textarea.rb,
lib/matestack/ui/vue_js/components/collection/next.rb,
lib/matestack/ui/vue_js/components/collection/page.rb,
lib/matestack/ui/vue_js/components/collection/order.rb,
lib/matestack/ui/vue_js/components/form/nested_form.rb,
lib/matestack/ui/vue_js/components/collection/filter.rb,
lib/matestack/ui/vue_js/components/collection/content.rb,
lib/matestack/ui/vue_js/components/collection/previous.rb,
lib/matestack/ui/vue_js/components/collection/filter_reset.rb,
lib/matestack/ui/vue_js/components/collection/order_toggle.rb,
lib/matestack/ui/vue_js/components/form/fields_for_add_item.rb,
lib/matestack/ui/vue_js/components/form/fields_for_remove_item.rb,
lib/matestack/ui/vue_js/components/collection/order_toggle_indicator.rb

Defined Under Namespace

Modules: Collection, Form Classes: Action, App, Async, Cable, Isolated, Onclick, PageSwitch, Toggle, Transition

Instance Method Summary collapse

Instance Method Details

#action(text = nil, options = nil, &block) ⇒ Object



30
31
32
# File 'lib/matestack/ui/vue_js/components.rb', line 30

def action(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Action.(text, options, &block)
end

#async(text = nil, options = nil, &block) ⇒ Object



26
27
28
# File 'lib/matestack/ui/vue_js/components.rb', line 26

def async(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Async.(text, options, &block)
end

#cable(text = nil, options = nil, &block) ⇒ Object



34
35
36
# File 'lib/matestack/ui/vue_js/components.rb', line 34

def cable(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Cable.(text, options, &block)
end

#collection_content(text = nil, options = nil, &block) ⇒ Object



79
80
81
# File 'lib/matestack/ui/vue_js/components.rb', line 79

def collection_content(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Collection::Content.(text, options, &block)
end

#collection_content_next(text = nil, options = nil, &block) ⇒ Object



103
104
105
# File 'lib/matestack/ui/vue_js/components.rb', line 103

def collection_content_next(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Collection::Next.(text, options, &block)
end


111
112
113
# File 'lib/matestack/ui/vue_js/components.rb', line 111

def collection_content_page_link(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Collection::Page.(text, options, &block)
end

#collection_content_previous(text = nil, options = nil, &block) ⇒ Object



107
108
109
# File 'lib/matestack/ui/vue_js/components.rb', line 107

def collection_content_previous(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Collection::Previous.(text, options, &block)
end

#collection_filter(text = nil, options = nil, &block) ⇒ Object



83
84
85
# File 'lib/matestack/ui/vue_js/components.rb', line 83

def collection_filter(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Collection::Filter.(text, options, &block)
end

#collection_filter_reset(text = nil, options = nil, &block) ⇒ Object



87
88
89
# File 'lib/matestack/ui/vue_js/components.rb', line 87

def collection_filter_reset(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Collection::FilterReset.(text, options, &block)
end

#collection_order(text = nil, options = nil, &block) ⇒ Object



91
92
93
# File 'lib/matestack/ui/vue_js/components.rb', line 91

def collection_order(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Collection::Order.(text, options, &block)
end

#collection_order_toggle(text = nil, options = nil, &block) ⇒ Object



95
96
97
# File 'lib/matestack/ui/vue_js/components.rb', line 95

def collection_order_toggle(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Collection::OrderToggle.(text, options, &block)
end

#collection_order_toggle_indicator(text = nil, options = nil, &block) ⇒ Object



99
100
101
# File 'lib/matestack/ui/vue_js/components.rb', line 99

def collection_order_toggle_indicator(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Collection::OrderToggleIndicator.(text, options, &block)
end

#form_checkbox(text = nil, options = nil, &block) ⇒ Object



67
68
69
# File 'lib/matestack/ui/vue_js/components.rb', line 67

def form_checkbox(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Form::Checkbox.(text, options, &block)
end

#form_fields_for(text = nil, options = nil, &block) ⇒ Object



42
43
44
45
46
47
48
49
# File 'lib/matestack/ui/vue_js/components.rb', line 42

def form_fields_for(text=nil, options=nil, &block)
  # in order to provide a more intuitiv API while calling the default
  # form, we transform the arguments a bit:
  options[:for] = text
  options[:fields_for] = options.delete(:key)
  text = nil
  Matestack::Ui::VueJs::Components::Form::NestedForm.(text, options, &block)
end

#form_fields_for_add_item(text = nil, options = nil, &block) ⇒ Object



55
56
57
# File 'lib/matestack/ui/vue_js/components.rb', line 55

def form_fields_for_add_item(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Form::FieldsForAddItem.(text, options, &block)
end

#form_fields_for_remove_item(text = nil, options = nil, &block) ⇒ Object



51
52
53
# File 'lib/matestack/ui/vue_js/components.rb', line 51

def form_fields_for_remove_item(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Form::FieldsForRemoveItem.(text, options, &block)
end

#form_input(text = nil, options = nil, &block) ⇒ Object



59
60
61
# File 'lib/matestack/ui/vue_js/components.rb', line 59

def form_input(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Form::Input.(text, options, &block)
end

#form_radio(text = nil, options = nil, &block) ⇒ Object



71
72
73
# File 'lib/matestack/ui/vue_js/components.rb', line 71

def form_radio(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Form::Radio.(text, options, &block)
end

#form_select(text = nil, options = nil, &block) ⇒ Object



75
76
77
# File 'lib/matestack/ui/vue_js/components.rb', line 75

def form_select(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Form::Select.(text, options, &block)
end

#form_textarea(text = nil, options = nil, &block) ⇒ Object



63
64
65
# File 'lib/matestack/ui/vue_js/components.rb', line 63

def form_textarea(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Form::Textarea.(text, options, &block)
end

#matestack_form(text = nil, options = nil, &block) ⇒ Object



38
39
40
# File 'lib/matestack/ui/vue_js/components.rb', line 38

def matestack_form(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Form::Form.(text, options, &block)
end

#matestack_vue_js_app(text = nil, options = nil, &block) ⇒ Object



6
7
8
# File 'lib/matestack/ui/vue_js/components.rb', line 6

def matestack_vue_js_app(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::App.(text, options, &block)
end

#onclick(text = nil, options = nil, &block) ⇒ Object



18
19
20
# File 'lib/matestack/ui/vue_js/components.rb', line 18

def onclick(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Onclick.(text, options, &block)
end

#page_switch(text = nil, options = nil, &block) ⇒ Object



10
11
12
# File 'lib/matestack/ui/vue_js/components.rb', line 10

def page_switch(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::PageSwitch.(text, options, &block)
end

#toggle(text = nil, options = nil, &block) ⇒ Object



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

def toggle(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Toggle.(text, options, &block)
end

#transition(text = nil, options = nil, &block) ⇒ Object



22
23
24
# File 'lib/matestack/ui/vue_js/components.rb', line 22

def transition(text=nil, options=nil, &block)
   Matestack::Ui::VueJs::Components::Transition.(text, options, &block)
end