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

Instance Method Summary collapse

Instance Attribute Details

#asObject (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

#disabledObject



10
11
12
# File 'lib/nfg_ui/bootstrap/utilities/disableable.rb', line 10

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