class UiBibz::Ui::Core::Boxes::Components::CardListGroup

Create a card list_group

Attributes

Options

You can add HTML attributes using the html_options. You can pass arguments in options attribute:

Signatures

UiBibz::Ui::Core::Boxes::CardListGroup.new(content, options = nil, html_options = nil)

UiBibz::Ui::Core::Boxes::CardListGroup.new(options = nil, html_options = nil) do
  content
end

Examples

UiBibz::Ui::Core::Boxes::CardListGroup.new.render

UiBibz::Ui::Core::Boxes::CardListGroup.new do
  'Exemple'
end.render

Public Class Methods

new(content = nil, options = nil, html_options = nil, &block) click to toggle source

See UiBibz::Ui::Core::Component.initialize

Calls superclass method UiBibz::Ui::Core::Lists::ListGroup::new
# File lib/ui_bibz/ui/core/boxes/components/card_list_group.rb, line 35
def initialize(content = nil, options = nil, html_options = nil, &block)
  super
  @lists = []
end

Protected Instance Methods

component_html_classes() click to toggle source
# File lib/ui_bibz/ui/core/boxes/components/card_list_group.rb, line 42
def component_html_classes
  %w[list-group-flush list-group]
end