Class: Plutonium::UI::Modal::Slideover
- Inherits:
-
Base
- Object
- Component::Base
- Base
- Plutonium::UI::Modal::Slideover
- Defined in:
- lib/plutonium/ui/modal/slideover.rb
Constant Summary collapse
- SIZE_CLASSES =
Width tokens for each VALID_SIZES key. Mobile always takes full width (the slideover is pinned to the right edge, so anything narrower than the viewport looks awkward on phones); the ‘sm:` token controls the desktop width. `:md` reproduces the historical default. `:auto` switches to `sm:w-auto` with a viewport cap so the panel grows to fit the form.
{ sm: "w-full sm:w-[400px]", md: "w-full sm:w-[480px]", lg: "w-full sm:w-[640px]", xl: "w-full sm:w-[800px]", auto: "w-full sm:w-auto sm:max-w-[90vw] sm:min-w-[480px]", full: "w-full sm:w-[95vw]" }.freeze
Constants inherited from Base
Method Summary
Methods inherited from Base
class_for_mode, #initialize, #view_template
Methods included from Component::Behaviour
Methods included from Component::Tokens
Methods included from Component::Kit
#BuildActionButton, #BuildActionsDropdown, #BuildAvatar, #BuildBlock, #BuildBreadcrumbs, #BuildBulkActionsToolbar, #BuildColorModeSelector, #BuildDynaFrameContent, #BuildDynaFrameHost, #BuildEmptyCard, #BuildFrameNavigatorPanel, #BuildModalCentered, #BuildModalSlideover, #BuildPageHeader, #BuildPanel, #BuildRowActionsDropdown, #BuildSkeletonTable, #BuildTabList, #BuildTableFilterPills, #BuildTableInfo, #BuildTablePagination, #BuildTableScopesBar, #BuildTableScopesPills, #BuildTableSearchBar, #BuildTableToolbar, #BuildTableViewSwitcher, #method_missing, #respond_to_missing?
Constructor Details
This class inherits a constructor from Plutonium::UI::Modal::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Plutonium::UI::Component::Kit