Class: Plutonium::UI::DynaFrame::Content

Inherits:
Component::Base show all
Includes:
Phlex::Rails::Helpers::TurboFrameTag
Defined in:
lib/plutonium/ui/dyna_frame/content.rb

Instance Method Summary collapse

Methods included from Component::Behaviour

#around_template

Methods included from Component::Tokens

#classes, #tokens

Methods included from Component::Kit

#BuildActionButton, #BuildBlock, #BuildBreadcrumbs, #BuildColorModeSelector, #BuildDynaFrameContent, #BuildDynaFrameHost, #BuildEmptyCard, #BuildFrameNavigatorPanel, #BuildPageHeader, #BuildPanel, #BuildSkeletonTable, #BuildTabList, #BuildTableInfo, #BuildTablePagination, #BuildTableScopesBar, #BuildTableSearchBar, #method_missing, #respond_to_missing?

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Plutonium::UI::Component::Kit

Instance Method Details

#view_templateObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/plutonium/ui/dyna_frame/content.rb', line 7

def view_template
  if current_turbo_frame.present?
    turbo_frame_tag(current_turbo_frame) do
      render partial("flash")
      yield
    end
  else
    yield
  end
end