Sha256: 1767bc7aba98639af4e8539f906ad8d3ce9c176e2019cdc9120cffa72f5dd945

Contents?: true

Size: 733 Bytes

Versions: 6

Compression:

Stored size: 733 Bytes

Contents

# frozen_string_literal: true

module UiBibz::Helpers::Ui::Core::ListsHelper
  # List Group Component
  #
  # +options+ (Hash)
  # +html_options+ (Hash)
  def ui_list_group(content = nil, options = nil, html_options = nil, &block)
    UiBibz::Ui::Core::Lists::ListGroup.new(content, options, html_options).tap(&block).render
  end

  # List Component
  #
  # +options+ (Hash)
  # +html_options+ (Hash)
  def ui_list(content = nil, options = nil, html_options = nil, &block)
    if tap?(content, options)
      UiBibz::Ui::Core::Lists::Components::List.new(content, options, html_options).tap(&block).render
    else
      UiBibz::Ui::Core::Lists::Components::List.new(content, options, html_options, &block).render
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ui_bibz-2.5.6 lib/ui_bibz/helpers/ui/core/lists_helper.rb
ui_bibz-2.5.5 lib/ui_bibz/helpers/ui/core/lists_helper.rb
ui_bibz-2.5.3 lib/ui_bibz/helpers/ui/core/lists_helper.rb
ui_bibz-2.5.2 lib/ui_bibz/helpers/ui/core/lists_helper.rb
ui_bibz-2.5.1 lib/ui_bibz/helpers/ui/core/lists_helper.rb
ui_bibz-2.5.0 lib/ui_bibz/helpers/ui/core/lists_helper.rb