Placeholders in snippets - Mendix Forum

Placeholders in snippets

42

It would be nice to define placeholders in snippets. So there is room inside the snippet for the caller of the snippet to do extra stuff. Sometimes I create almost duplicate pages/snippets only because there needs to be a button somewhere between the rest of the snippet.

As an extra it would be nice, inside that placeholder, to be able to use the context of the caller of the snippet as a parameter for a microflow.

asked
5 answers

Also please allow islands inside of the placeholder. example, snippet has a placeholder. And that placeholder has an island where the original snippet can continue to add stuffs.

Created

yes this would be handy!

Created

Do something with this! 3 months ago, someone requested the same, it is still wanted so bad!

Created

By doing so, Snippets could almost turn into whole blocks of functionality and yes, please do that. 

We work with a lot of manual components and prefer to use list views with our own filters, instead of datagrids. A layout grid, a few containers and some classes that every time have to be copied. If we could just reuse the same snippet and use different input fields, then everything would be so much easier and our product must more consistent with our more effort. 

Created

Excellent idea, this would be very useful for certain projects!

Created