Changes for page Release Notes for XWiki 6.4
Last modified by Thomas Mortagne on 2020/01/28
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. VincentMassol1 +XWiki.mflorea - Content
-
... ... @@ -354,6 +354,24 @@ 354 354 </extension> 355 355 {{/code}} 356 356 357 +== Bridging custom XWiki events from Prototype to jQuery == 358 + 359 +Starting with this version you can catch from jQuery the custom XWiki events that are fired from Prototype. 360 + 361 +{{code language="js"}} 362 +require(['jquery', 'xwiki-events-bridge'], function($) { 363 + $('.some-element').on('xwiki:moduleName:eventName', function(event, data) { 364 + // Here, do something that will be executed at the moment the event is fired. 365 + doSomething(); 366 + 367 + // The passed data is a reference to the event.memo from Prototype. 368 + console.log(data.somethingINeedToKnow); 369 + }); 370 +}); 371 +{{/code}} 372 + 373 +See the [[JavaScript API documentation>>platform:DevGuide.JavaScriptAPI]] for the list of events that you can listen to. 374 + 357 357 == Miscellaneous == 358 358 359 359 * Added new APIs to get all the icon themes present on the wiki, and all icons that these icon themes contain.(((