The whole thing remind me of the PropertyGrid class of C#. You can
define a editor class for a custom type.
So, are you saying that the feature that I'm requesting is under
development, at least for simple types(boolean, enumeration)?
Or can I create a feature request on JIRA?
I see there is a related feature request:
http://jira.xwiki.org/jira/browse/XWIKI-442
But there is no "parameter type" option in
XWiki.WikiMacroParameterClass. So how to use it?
On Sat, Nov 14, 2009 at 4:53 PM, Marius Dumitru Florea
<mariusdumitru.florea(a)xwiki.com> wrote:
Hi,
Zhaolin Feng wrote:
I'm learning to implement a macro for
Lightbox Application as
suggested by Guillaume.
So far I've read:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingMacros
And I have a question. Is it possible to have other macro parameter
types besides string? For examples, boolean, enumeration, filename,
image, color. And it's even better to have color picker, image picker
dialog automatically popped up when clicking.
I see the HTML macro have boolean parameters. How is it achieved?
Is is possible to reuse the image picker of the
WYSIWYG editor?
Are you referring to the Insert Image wizard? The wizard itself is
reusable. It might require some changes though since you want to open a
wizard (Insert Image) from another wizard (Insert Macro) and wizards are
currently modal (one at a time).
We are currently associating widgets to macro parameter types.
Associating simple widgets like a color picker is easy. For instance we
associate text input to strings and list box to boolean and
enumerations. Associating dialog wizards might require some extra work.
Also, it might be desirable, as Jerome pointed out, to provide a way for
a rendering macro to register its own custom edit dialog in WYSIWYG mode.
Marius
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
-- Currahee! We stand alone together!