Module: Vuexy::Helpers::Components

Included in:
Vuexy::Helpers
Defined in:
lib/vuexy/helpers/components.rb

Instance Method Summary collapse

Instance Method Details

#vuexy_login_basic(title: nil, text: nil, &block) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/vuexy/helpers/components.rb', line 6

def (title: nil, text: nil, &block)
  assets_for(:authentication)
  render(
    partial: 'vuexy/components/authentication/login_basic',
    locals: {
      title: title,
      text: text,
      block: block
    }
  )
end

#vuexy_login_cover(title: nil, text: nil, image: nil, &block) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/vuexy/helpers/components.rb', line 18

def (title: nil, text: nil, image: nil, &block)
  assets_for(:authentication)
  render(
    partial: 'vuexy/components/authentication/login_cover',
    locals: {
      title: title,
      text: text,
      image: image,
      block: block
    }
  )
end

#vuexy_modal(id, &block) ⇒ Object



31
32
33
34
35
36
37
38
39
# File 'lib/vuexy/helpers/components.rb', line 31

def vuexy_modal(id, &block)
  render(
    partial: 'vuexy/components/modal',
    locals: {
      id: id,
      block: block
    }
  )
end