Class: Shadcn::Command::Preview
- Inherits:
-
ApplicationViewComponentPreview
- Object
- ViewComponentContrib::Preview::Base
- ApplicationViewComponentPreview
- Shadcn::Command::Preview
- Defined in:
- app/components/shadcn/command/preview.rb
Instance Method Summary collapse
-
#default ⇒ Object
Upstream's own example: a palette in a box, with two groups and the shortcuts beside the rows.
-
#dialog ⇒ Object
Upstream's "Dialog": the same list inside a Dialog.
-
#ranking ⇒ Object
What ranking buys, which filtering does not: type "gp" and Group Policy comes first, because a palette answers "what did you mean".
Instance Method Details
#default ⇒ Object
Upstream's own example: a palette in a box, with two groups and the shortcuts beside the rows.
8 9 10 |
# File 'app/components/shadcn/command/preview.rb', line 8 def default render_with_template end |
#dialog ⇒ Object
Upstream's "Dialog": the same list inside a Dialog. The shortcut that
opens it is the caller's — data-action on any element, or the Dialog's
own trigger.
15 16 17 |
# File 'app/components/shadcn/command/preview.rb', line 15 def dialog render_with_template end |
#ranking ⇒ Object
What ranking buys, which filtering does not: type "gp" and Group Policy comes first, because a palette answers "what did you mean".
21 22 23 |
# File 'app/components/shadcn/command/preview.rb', line 21 def ranking render_with_template end |