Is it possible to use Slideouts just as an informative view, without save actions? #15198
-
I'm building a slideout into my plugin and want to create something like a "more details" view. But slideouts always have "Cancel" and "Save" buttons. Is there a way to customize this? |
Beta Was this translation helpful? Give feedback.
Answered by
brandonkelly
Jun 14, 2024
Replies: 1 comment 1 reply
-
Yes, you can create a slideout manually via JavaScript, and put whatever you want in them: const mySlideout = new Craft.Slideout('<p>Hello</p>'); For example, field layout designers will create slideouts for showing field layout element settings: cms/src/web/assets/cp/src/js/FieldLayoutDesigner.js Lines 344 to 372 in 1b2dd98 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
brandonkelly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can create a slideout manually via JavaScript, and put whatever you want in them:
For example, field layout designers will create slideouts for showing field layout element settings:
cms/src/web/assets/cp/src/js/FieldLayoutDesigner.js
Lines 344 to 372 in 1b2dd98