Module: UiBibz::Helpers::Ui::Core::NavigationsHelper

Included in:
UiBibz::Helpers::Ui::CoreHelper
Defined in:
lib/ui_bibz/helpers/ui/core/navigations_helper.rb

Instance Method Summary collapse

Instance Method Details

#ui_breadcrumb(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Breadcrumb Component

options (Hash) html_options (Hash)



57
58
59
60
61
62
63
# File 'lib/ui_bibz/helpers/ui/core/navigations_helper.rb', line 57

def ui_breadcrumb(content = nil, options = nil, html_options = nil, &block)
  if block.nil?
    UiBibz::Ui::Core::Navigations::Breadcrumb.new(content, options, html_options, &block).render
  else
    UiBibz::Ui::Core::Navigations::Breadcrumb.new(content, options, html_options).tap(&block).render
  end
end

Link Component

options (Hash) html_options (Hash)



48
49
50
# File 'lib/ui_bibz/helpers/ui/core/navigations_helper.rb', line 48

def ui_link(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Navigations::Link.new(content, options, html_options, &block).render
end

#ui_nav(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Nav Component

options (Hash) html_options (Hash)



8
9
10
# File 'lib/ui_bibz/helpers/ui/core/navigations_helper.rb', line 8

def ui_nav(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Navigations::Nav.new(content, options, html_options).tap(&block).render
end

#ui_navbar(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Navbar Component

options (Hash) html_options (Hash)



24
25
26
# File 'lib/ui_bibz/helpers/ui/core/navigations_helper.rb', line 24

def ui_navbar(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Navigations::Navbar.new(content, options, html_options).tap(&block).render
end

#ui_pagination(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Pagination Component

options (Hash) html_options (Hash)



32
33
34
# File 'lib/ui_bibz/helpers/ui/core/navigations_helper.rb', line 32

def ui_pagination(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Navigations::Pagination.new(content, options, html_options).tap(&block).render
end

#ui_tab_group(content = nil, options = nil, html_options = nil, &block) ⇒ Object

TabGroup Component

options (Hash) html_options (Hash)



16
17
18
# File 'lib/ui_bibz/helpers/ui/core/navigations_helper.rb', line 16

def ui_tab_group(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Navigations::TabGroup.new(content, options, html_options).tap(&block).render
end

#ui_toolbar(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Toolbar Component

options (Hash) html_options (Hash)



40
41
42
# File 'lib/ui_bibz/helpers/ui/core/navigations_helper.rb', line 40

def ui_toolbar(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Navigations::Toolbar.new(content, options, html_options).tap(&block).render
end