Class: ActiveAdmin::Views::BlankSlate
- Defined in:
- lib/active_admin/views/components/blank_slate.rb
Overview
Build a Blank Slate
Instance Method Summary collapse
Methods inherited from Component
Constructor Details
This class inherits a constructor from ActiveAdmin::Component
Instance Method Details
#build(name, url = nil) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/active_admin/views/components/blank_slate.rb', line 11 def build(name, url = nil) if url super(span(blank_slate_content_with_link(name, url), :class => "blank_slate")) else super(span(blank_slate_content_without_link(name), :class => "blank_slate")) end end |
#default_class_name ⇒ Object
7 8 9 |
# File 'lib/active_admin/views/components/blank_slate.rb', line 7 def default_class_name 'blank_slate_container' end |