asCpScreen controller method - allow removing form from page completly #13593
-
The problem is, that every page using this method has its contents enclosed in the form which can be submitted. Would be great if we could just get rid of this form and use |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Just found out that this can be done by setting |
Beta Was this translation helpful? Give feedback.
-
(Finally) made it possible to create non- To do it, you’ll need to include const slideout = new Craft.CpScreenSlideout('my/render/action',
containerElement: 'div',
}); When |
Beta Was this translation helpful? Give feedback.
(Finally) made it possible to create non-
form
slideouts, for Craft 5.8 (2f925b3).To do it, you’ll need to include
containerElement: 'div'
in thesettings
object.When
containerElement
isn’t'form'
(still the default), the slideout won’t get a “Save” button, and the close button will be labelled “Close” instead of “Cancel”.