Class: ExpressAdmin::Components::Layout::Pane

Inherits:
LayoutComponent
  • Object
show all
Defined in:
app/components/express_admin/layout_components/pane.rb

Instance Method Summary collapse

Methods inherited from LayoutComponent

#style_attributes

Instance Method Details

#headingObject



14
15
16
17
18
19
20
21
# File 'app/components/express_admin/layout_components/pane.rb', line 14

def heading
  h4(class: 'pane-title') {
    current_arbre_element.add_child title
    if status
      span(class: 'pane-status') { status }
    end
  }
end

#statusObject



27
28
29
# File 'app/components/express_admin/layout_components/pane.rb', line 27

def status
  config[:status]
end

#titleObject



23
24
25
# File 'app/components/express_admin/layout_components/pane.rb', line 23

def title
  config[:title]
end