Hello,
I created a macro to format text in a colored box, and would like to have the colour option as a dropdown list to select between specific choices.
Right now my macro works but I have to manually enter the “colour=Red” or “colour=Blue” in the wiki source editor, I would like a dropdown list in wysiwyg editor when I insert my macro.
Then it’d be a custom picker that is needed and you’ll need to implement it. Unless you don’t want a color picker at all but just a list of text elements. Then you could implement an Enum as is indicated on the page:
You can also provide the reference of an existing Java Enum to get a custom select picker with its values. If you want to create a custom enum for your parameter, you can try the following approach.
Ok thanks, too much complicated to create a dropdown select list, I’m not familiar with java so building a .jar to import it seems too much effort, users will have to write from the list I provide them in the parameter description.