Developer Annotation widget or canvas marker - Mendix Forum

Developer Annotation widget or canvas marker

0

This is the output maia provided for this idea ;-) (after a long chat that eventually ended in a gap in Mendix)):

A first-class 'Developer Annotation' widget or canvas marker that is visible only in Studio Pro's design canvas with strong visual styling (color, icon), and is automatically excluded from the runtime output."

Used by a developer during page-design to annotate some special design-structures

asked
1 answers

Hi Didier,

You’re right, classes and design properties only show up in Design mode, so that doesn’t help a team that works in Structure mode.

I’ve built a custom widget called Dev Note to address this requirement. It is visible in both Structure mode and Design mode, while remaining invisible at runtime.

How it works:

  • Drag Dev Note from the toolbox (Structure category) onto any page. No data view needed.
  • Pick a Type: Note (yellow), Warning (red) or To do (blue).
  • Enter a title and your note text.
  • It shows as a colored box in both Structure mode and Design mode.
  • At runtime it renders nothing, so end users never see it and you don’t need any visibility settings.
  • In the Page Explorer it shows as “DEV NOTE: your text”, so notes are easy to find.


In Structure mode: It is Visible

I have attached image for your reference.

The same page at runtime, with no note visible:


One thing to know: it’s a note you place next to the part of the page you want to explain, not a container you wrap around other widgets. I did that on purpose, because a container that renders nothing at runtime would also hide everything inside it.

I’ve published it on the Marketplace: Dev Note - Developer Notes in Structure Mode

Hope this helps.



Created