Class: Components::Databasium::Collapsable
- Defined in:
- app/components/databasium/collapsable.rb
Instance Method Summary collapse
-
#initialize(name: nil, form: nil, class_name: nil, data_targets: {}, name_params: nil, target_container: nil) ⇒ Collapsable
constructor
A new instance of Collapsable.
- #view_template(&block) ⇒ Object
Methods inherited from Base
Methods included from Databasium::HeroiconHelper
Constructor Details
#initialize(name: nil, form: nil, class_name: nil, data_targets: {}, name_params: nil, target_container: nil) ⇒ Collapsable
Returns a new instance of Collapsable.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/components/databasium/collapsable.rb', line 6 def initialize( name: nil, form: nil, class_name: nil, data_targets: {}, name_params: nil, target_container: nil ) @name = name @form = form @class_name = class_name @data_targets = data_targets @name_params = name_params || {} @target_container = target_container end |
Instance Method Details
#view_template(&block) ⇒ Object
22 23 24 |
# File 'app/components/databasium/collapsable.rb', line 22 def view_template(&block) form(&block) end |