Class: NfgUi::Bootstrap::Components::Badge

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

Overview

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

Direct Known Subclasses

Components::Elements::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, #data, #href, #html_options, #id, #initialize, #render, #style

Constructor Details

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

Instance Method Details

#pillObject



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

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