Sha256: cddd159a85d0a0e1e9362e04e87814f2af1c5e398ceeafe2be807a511c027dd7

Contents?: true

Size: 1.94 KB

Versions: 48

Compression:

Stored size: 1.94 KB

Contents

# frozen_string_literal: true

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

48 entries across 48 versions & 1 rubygems

Version Path
ui_bibz-3.0.0.beta13 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-3.0.0.beta12 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-3.0.0.beta11 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-3.0.0.beta10 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-3.0.0.beta9 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-3.0.0.beta8 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-3.0.0.beta7 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-3.0.0.beta6 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-3.0.0.beta5 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-3.0.0.beta4 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-3.0.0.beta3 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-3.0.0.beta2 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-3.0.0.beta1 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-3.0.0.alpha12 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-3.0.0.alpha11 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-3.0.0.alpha10 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-3.0.0.alpha9 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-3.0.0.alpha8 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-3.0.0.alpha6 lib/ui_bibz/helpers/ui/core/navigations_helper.rb
ui_bibz-3.0.0.alpha5 lib/ui_bibz/helpers/ui/core/navigations_helper.rb