Class: NfgUi::Components::Elements::FormControl

Inherits:
Base show all
Defined in:
lib/nfg_ui/components/elements/form_control.rb

Overview

FormControl doc coming soon

Constant Summary

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 Utilities::Traitable

#traits, #utility_initialize

Methods included from Utilities::Renderable

#render_if, #render_unless

Methods included from Utilities::Describable

#data, #describe

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

#renderObject



8
9
10
11
12
13
14
# File 'lib/nfg_ui/components/elements/form_control.rb', line 8

def render
  # this is a place holder, to indicate that this
  # component is not yet rendering a true bootstrap element
  (:b, class: 'text-danger') do
    'Form Control Element Component'
  end
end