Class: Docks::Themes::API::Components::Popover
- Defined in:
- lib/docks_theme_api/components/popover_component.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#==, #classes_for, #config, #initialize, #inspect, #method_missing, #respond_to?, #to_s
Constructor Details
This class inherits a constructor from Docks::Themes::API::Components::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Docks::Themes::API::Components::Base
Instance Method Details
#pane(options = {}, &block) ⇒ Object
7 8 9 10 11 |
# File 'lib/docks_theme_api/components/popover_component.rb', line 7 def pane( = {}, &block) klass = "popover__pane" klass << " popover__pane--fixed" if .fetch(:fixed?, false) concat "<div class='#{klass}'>#{capture(&block)}</div>" end |