Class: Bootstrap4RailsComponents::Bootstrap::Components::Badge

Inherits:
Base
  • Object
show all
Includes:
Utilities::Themeable, Utilities::Wrappable
Defined in:
lib/bootstrap4_rails_components/bootstrap/components/badge.rb

Overview

Bootstrap Badge Component getbootstrap.com/docs/4.1/components/badge/

Instance Attribute Summary

Attributes included from Utilities::Wrappable

#as

Attributes inherited from Base

#body, #options, #view_context

Instance Method Summary collapse

Methods included from Utilities::Wrappable

#utility_initialize

Methods included from Utilities::Themeable

#outlined, #theme

Methods inherited from Base

#component_family, #component_initialize, #data, #href, #html_options, #id, #initialize, #render, #style, #utility_initialize

Constructor Details

This class inherits a constructor from Bootstrap4RailsComponents::Bootstrap::Components::Base

Instance Method Details

#pillObject



12
13
14
# File 'lib/bootstrap4_rails_components/bootstrap/components/badge.rb', line 12

def pill
  options.fetch(:pill, false)
end