Module: NfgUi::Bootstrap::Utilities::Disableable
- Included in:
- Components::Button, Components::DropdownItem, Components::ListGroupItem, Components::NavLink, Tooltipable
- Defined in:
- lib/nfg_ui/bootstrap/utilities/disableable.rb
Overview
Allows components to have a disabled state when appropriate
Instance Attribute Summary collapse
-
#as ⇒ Object
readonly
Returns the value of attribute as.
Instance Method Summary collapse
Instance Attribute Details
#as ⇒ Object (readonly)
Returns the value of attribute as.
8 9 10 |
# File 'lib/nfg_ui/bootstrap/utilities/disableable.rb', line 8 def as @as end |
Instance Method Details
#disabled ⇒ Object
10 11 12 |
# File 'lib/nfg_ui/bootstrap/utilities/disableable.rb', line 10 def disabled .fetch(:disabled, false) end |