Class: NfgUi::Components::Elements::Table
- Inherits:
-
Bootstrap::Components::Table
- Object
- Bootstrap::Components::Base
- Bootstrap::Components::Table
- NfgUi::Components::Elements::Table
- Includes:
- Traits::Responsive, Traits::Size, Traits::Table, Utilities::Describable, Utilities::Renderable, Utilities::Traitable
- Defined in:
- lib/nfg_ui/components/elements/table.rb
Overview
Table doc coming soon
Constant Summary
Constants included from Traits::Table
Constants included from Traits::Size
Constants included from Traits::Responsive
Constants included from Traits
Traits::REGISTERED_TRAITS, Traits::TRAIT_MODULES
Instance Attribute Summary
Attributes inherited from Bootstrap::Components::Base
#body, #options, #view_context
Instance Method Summary collapse
Methods included from Traits::Table
#bordered_trait, #striped_trait
Methods included from Traits::Size
#lg_trait, #md_trait, #sm_trait, #xl_trait
Methods included from Traits::Responsive
Methods included from Utilities::Renderable
Methods included from Utilities::Describable
Methods included from Utilities::Traitable
Methods inherited from Bootstrap::Components::Table
Methods included from Bootstrap::Utilities::Sizable
Methods included from Bootstrap::Utilities::Responsiveable
Methods inherited from Bootstrap::Components::Base
#component_family, #data, #href, #html_options, #id, #initialize, #style
Constructor Details
This class inherits a constructor from NfgUi::Bootstrap::Components::Base
Instance Method Details
#caption ⇒ Object
16 17 18 |
# File 'lib/nfg_ui/components/elements/table.rb', line 16 def .fetch(:caption, ) end |
#render ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/nfg_ui/components/elements/table.rb', line 20 def render # We manually embed this caption as a typeface component # as part of the design pattern. if .present? capture do concat(NfgUi::Components::Foundations::Typeface.new({caption: .to_s, class: 'mb-1 text-right', traits: [:muted]}, view_context).render) concat(super) end else super end end |