Sha256: 13defe736a4885c423031111a31b3bc9560b2a1bb07571fda8956126c93dd65c

Contents?: true

Size: 1.91 KB

Versions: 38

Compression:

Stored size: 1.91 KB

Contents

module UiBibz::Helpers::Ui::Core::NavigationsHelper

  # Nav Component
  #
  # +options+ (Hash)
  # +html_options+ (Hash)
  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

  # TabGroup Component
  #
  # +options+ (Hash)
  # +html_options+ (Hash)
  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

  # Navbar Component
  #
  # +options+ (Hash)
  # +html_options+ (Hash)
  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

  # Pagination Component
  #
  # +options+ (Hash)
  # +html_options+ (Hash)
  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

  # Toolbar Component
  #
  # +options+ (Hash)
  # +html_options+ (Hash)
  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

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

  # Breadcrumb Component
  #
  # +options+ (Hash)
  # +html_options+ (Hash)
  #
  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

end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
ui_bibz-2.4.0 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-2.3.15 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-2.3.14 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-2.3.13 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-2.3.12 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-2.3.11 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-2.3.10 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-2.3.9 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-2.3.8 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-2.3.7 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-2.3.6 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-2.3.5 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-2.3.4 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-2.3.3 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-2.3.2 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-2.3.1 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-2.3.0 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-2.2.2 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-2.2.1 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-2.2.0 lib/ui_bibz/helpers/ui/core/navigations_helper.rb