Skip to content

asCpScreen controller method - allow removing form from page completly #13593

Closed Answered by brandonkelly
piotrpog asked this question in Ideas
Discussion options

You must be logged in to vote

(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 the settings object.

const slideout = new Craft.CpScreenSlideout('my/render/action',
  containerElement: 'div',
});

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”.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@brandonkelly
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants