Class: ForestAdminDatasourceToolkit::Components::Actions::ActionLayoutElement::HtmlBlockElement

Inherits:
BaseLayoutElement
  • Object
show all
Defined in:
lib/forest_admin_datasource_toolkit/components/actions/action_layout_element.rb

Instance Attribute Summary collapse

Attributes inherited from BaseLayoutElement

#component, #type

Instance Method Summary collapse

Methods inherited from BaseLayoutElement

#to_h

Constructor Details

#initialize(content:, **options) ⇒ HtmlBlockElement

Returns a new instance of HtmlBlockElement.



37
38
39
40
# File 'lib/forest_admin_datasource_toolkit/components/actions/action_layout_element.rb', line 37

def initialize(content:, **options)
  super(component: 'HtmlBlock', **options)
  @content = content
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



35
36
37
# File 'lib/forest_admin_datasource_toolkit/components/actions/action_layout_element.rb', line 35

def content
  @content
end