Version 1.1 by Clément Desableau on 2023/02/02

Show last authors
1
2 The ##type## property of a ##XWiki.WikiMacroParameterClass## object allows to specify into which Java type the parameter value (defined as a String) must be converted to.
3 Depending of the type provided, a custom picker can be used instead of the default one when editing the macro parameters in the wysiwyg editor.
4
5 Here are the type supported:
6
7 |=Type|=Custom picker
8 |##org.xwiki.model.reference.AttachmentReference##|Attachment picker
9 |##java.lang.Boolean##|Checkbox
10 |##java.awt.Color##|Color picker
11 |##java.utils.Date##|Date picker
12 |##org.xwiki.model.reference.DocumentReference##|Page picker
13 |##org.xwiki.model.reference.EntityReferenceString##|Custom picker for entity references
14 |##org.xwiki.model.EntityType##|Custom picker for entity types
15 |##org.xwiki.user.UserReference##|User Picker
16
17 You can also provide the reference of an existing Java ##Enum## to get a custom select picker with its values.
18
19 You can find the pickers implementation [[here>>https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-templates/src/main/resources/templates/html_displayer]]

Get Connected