Class: Plutonium::UI::Page::Base
- Inherits:
-
Component::Base
- Object
- Component::Base
- Plutonium::UI::Page::Base
- Defined in:
- lib/plutonium/ui/page/base.rb
Direct Known Subclasses
ApiClient::Concerns::CreateApiClient::CredentialsPage, Edit, Index, InteractiveAction, New, Show
Instance Method Summary collapse
-
#initialize(page_title: nil, page_description: nil, page_actions: nil) ⇒ Base
constructor
A new instance of Base.
- #view_template(&block) ⇒ Object
Methods included from Component::Behaviour
Methods included from Component::Tokens
Methods included from Component::Kit
#BuildActionButton, #BuildActionsDropdown, #BuildBlock, #BuildBreadcrumbs, #BuildBulkActionsToolbar, #BuildColorModeSelector, #BuildDynaFrameContent, #BuildDynaFrameHost, #BuildEmptyCard, #BuildFrameNavigatorPanel, #BuildPageHeader, #BuildPanel, #BuildRowActionsDropdown, #BuildSkeletonTable, #BuildTabList, #BuildTableInfo, #BuildTablePagination, #BuildTableScopesBar, #BuildTableSearchBar, #method_missing, #respond_to_missing?
Constructor Details
#initialize(page_title: nil, page_description: nil, page_actions: nil) ⇒ Base
Returns a new instance of Base.
7 8 9 10 11 |
# File 'lib/plutonium/ui/page/base.rb', line 7 def initialize(page_title: nil, page_description: nil, page_actions: nil) @page_title = page_title @page_description = page_description @page_actions = page_actions end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Plutonium::UI::Component::Kit
Instance Method Details
#view_template(&block) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/plutonium/ui/page/base.rb', line 13 def view_template(&block) DynaFrameContent(page_content(block)) do |frame| render_before_header render_header render_after_header render_before_content frame.render_content render_after_content end end |