Module: NfgUi::Bootstrap::Utilities::Responsiveable

Included in:
Components::Table, Components::Foundations::Image
Defined in:
lib/nfg_ui/bootstrap/utilities/responsiveable.rb

Instance Method Summary collapse

Instance Method Details

#responsiveObject

Setting #responsive to true will supply the component with, at minimum, a ‘[component-name]-responsive’ css class (e.g.: ‘table-responsive’)



9
10
11
# File 'lib/nfg_ui/bootstrap/utilities/responsiveable.rb', line 9

def responsive
  options.fetch(:responsive, default_responsive)
end