Class: Shadcn::Drawer::Preview
- Inherits:
-
ApplicationViewComponentPreview
- Object
- ViewComponentContrib::Preview::Base
- ApplicationViewComponentPreview
- Shadcn::Drawer::Preview
- Defined in:
- app/components/shadcn/drawer/preview.rb
Instance Method Summary collapse
- #default ⇒ Object
-
#scrollable ⇒ Object
A drawer taller than it can show, which is where the drag has to give way to the scroll.
-
#scrollable_side ⇒ Object
The same list, in a drawer that closes sideways — where the two gestures stop competing and the drag is let through whatever is scrolled.
-
#sides ⇒ Object
The other three edges, which the same class string serves — only the
data-vaul-drawer-directionchanges.
Instance Method Details
#default ⇒ Object
6 7 8 |
# File 'app/components/shadcn/drawer/preview.rb', line 6 def default render_with_template end |
#scrollable ⇒ Object
A drawer taller than it can show, which is where the drag has to give way to the scroll.
18 19 20 |
# File 'app/components/shadcn/drawer/preview.rb', line 18 def scrollable render_with_template end |
#scrollable_side ⇒ Object
The same list, in a drawer that closes sideways — where the two gestures stop competing and the drag is let through whatever is scrolled.
24 25 26 |
# File 'app/components/shadcn/drawer/preview.rb', line 24 def scrollable_side render_with_template end |
#sides ⇒ Object
The other three edges, which the same class string serves — only the
data-vaul-drawer-direction changes.
12 13 14 |
# File 'app/components/shadcn/drawer/preview.rb', line 12 def sides render_with_template end |