Module: Vuexy::Helpers::Tags

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

Instance Method Summary collapse

Instance Method Details

#vuexy_assets_cssObject



6
7
8
9
# File 'lib/vuexy/helpers/tags.rb', line 6

def vuexy_assets_css
  assets_for(nil) # Init
  # stylesheet_link_tag @vuexy_assets_css.join(', ')
end

#vuexy_assets_jsObject



11
12
13
# File 'lib/vuexy/helpers/tags.rb', line 11

def vuexy_assets_js
  assets_for(nil) # Init
end

#vuexy_icon(icon, style: nil) ⇒ Object



15
16
17
# File 'lib/vuexy/helpers/tags.rb', line 15

def vuexy_icon(icon, style: nil)
  tag.i class: 'ficon', data: { feather: icon }, style: style
end

#vuexy_modal_closeObject



19
20
21
# File 'lib/vuexy/helpers/tags.rb', line 19

def vuexy_modal_close
  { bs: { dismiss: 'modal' } }
end

#vuexy_modal_trigger(target) ⇒ Object



23
24
25
# File 'lib/vuexy/helpers/tags.rb', line 23

def vuexy_modal_trigger(target)
  { bs: { toggle: 'modal', target: "##{target}" } }
end