Module: NfgUi::Components::Utilities::Describable
- Included in:
- Base, Elements::Alert, Elements::Badge, Elements::Breadcrumb, Elements::BreadcrumbItem, Elements::Button, Elements::CardFooter, Elements::CardHeader, Elements::CardImage, Elements::CardImageOverlay, Elements::CarouselCaption, Elements::CarouselControl, Elements::CarouselIndicators, Elements::CarouselItem, Elements::DropdownDivider, Elements::DropdownHeader, Elements::DropdownItem, Elements::DropdownToggle, Elements::Embed, Elements::InputGroup, Elements::ListGroupItem, Elements::MediaBody, Elements::ModalBody, Elements::ModalFooter, Elements::ModalHeader, Elements::Nav, Elements::NavItem, Elements::NavLink, Elements::NavbarBrand, Elements::NavbarText, Elements::NavbarToggler, Elements::PageItem, Elements::Popover, Elements::ProgressBar, Elements::TabPane, Elements::Table, Patterns::ButtonGroup, Patterns::ButtonToolbar, Patterns::Card, Patterns::Carousel, Patterns::Collapse, Patterns::Dropdown, Patterns::DropdownMenu, Patterns::Jumbotron, Patterns::ListGroup, Patterns::Media, Patterns::Modal, Patterns::Navbar, Patterns::NavbarNav, Patterns::Pagination, Patterns::Progress, Patterns::TabContent
- Defined in:
- lib/nfg_ui/components/utilities/describable.rb
Overview
Allows components to be setup to accept icons
Instance Method Summary collapse
Instance Method Details
#data ⇒ Object
10 11 12 |
# File 'lib/nfg_ui/components/utilities/describable.rb', line 10 def data describe ? super.merge!(describe: describe) : super end |
#describe ⇒ Object
6 7 8 |
# File 'lib/nfg_ui/components/utilities/describable.rb', line 6 def describe .fetch(:describe, nil) end |