From version 57.8
edited by Vincent Massol
on 2018/10/23
To version 58.1
edited by Adel Atallah
on 2018/10/23
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.VincentMassol
1 +XWiki.atallahade
Content
... ... @@ -22,7 +22,7 @@
22 22  
23 23  Use information from a predefined class in your wiki (e.g. ##XWiki.TagClass##, ##XWiki.XWikiUsers##, etc.) or from a class defined by yourself.
24 24  
25 -For example, use **XWiki.TagClass** to suggest tags from the wiki tag cloud:
25 +For example, use **XWiki.TagClass** to suggest tags from the wiki tag cloud:
26 26  
27 27  [[image:Documentation.DevGuide.FrontendResources.AutoSugg[email protected]]]
28 28  
... ... @@ -43,7 +43,7 @@
43 43   Event.observe($('myinput'), "focus", function() {
44 44   new XWiki.widgets.Suggest(this, {
45 45   script: '$xwiki.getURL("${doc.space}.WebHome", "view")?xpage=suggest&classname=XWiki.TagClass&fieldname=tags&secCol=-&',
46 - varname: "input",
46 + varname: "input",
47 47   seps: " ,|",
48 48   offsety: 13
49 49   });
... ... @@ -193,7 +193,7 @@
193 193   Event.observe($('userInput'), "focus", function() {
194 194   new XWiki.widgets.Suggest(this, {
195 195   script: '$xwiki.getURL("${doc.fullName}", "view")?xpage=uorgsuggest&classname=XWiki.XWikiUsers&wiki=global&uorg=user&',
196 - varname: "input",
196 + varname: "input",
197 197   seps: " ,|",
198 198   delay : 200,
199 199   timeout: 5000,
... ... @@ -264,6 +264,23 @@
264 264  Since 6.2: there is also the ##auto## value, that will place the search box from the left of the input box unless there is not enough place to display it entirely, otherwise it will be displayed from the right.|##right##
265 265  |##propagateEventKeyCodes##|A sublist of key codes, from the list of keys handled by this widget, for which to propagate the keyboard event. Useful when another keyboard event listener exists on the input field, even if it may be registered at a difference level. See the ##onKeyPress## in the code for a clearer picture.|Empty list. By default, none of the handled key events propagate. All other, not handled, events do.
266 266  
267 += Velocity macros =
268 +
269 +You can use velocity macros to insert the suggest widgets.
270 +
271 +== Page picker widget ==
272 +
273 +The page picker widget can be inserted on a page using the following code:
274 +{{code}}{{velocity}}
275 +{{html}}
276 + #pagePicker()
277 +{{/html}}
278 +{{/velocity}}{{/code}}
279 +
280 +You can specify the HTML attributes of the select by doing this:
281 +{{code}}#set ($parameters = {'multiple': 'multiple', 'id': 'my-id'})
282 +#pagePicker($parameters){{/code}}
283 +
267 267  = Tips =
268 268  
269 269  * Suggest event:(((

Get Connected