Class: ExpressAdmin::Pane
Instance Method Summary
collapse
#component_classes, #container_div_attributes, #pass_along_attributes, #provided_style_attributes, #style_attributes, #supported_style_options
Instance Method Details
#component_options ⇒ Object
34
35
36
37
|
# File 'app/components/express_admin/pane.rb', line 34
def component_options
super +
[:title, :status]
end
|
#dom_id ⇒ Object
22
23
24
|
# File 'app/components/express_admin/pane.rb', line 22
def dom_id
nil
end
|
#heading ⇒ Object
13
14
15
16
17
18
19
20
|
# File 'app/components/express_admin/pane.rb', line 13
def heading
h4(class: 'title') {
current_arbre_element.add_child title
if status
span(class: 'status') { status }
end
}
end
|
#status ⇒ Object
30
31
32
|
# File 'app/components/express_admin/pane.rb', line 30
def status
config[:status] || nil
end
|
#title ⇒ Object
26
27
28
|
# File 'app/components/express_admin/pane.rb', line 26
def title
config[:title] || ''
end
|