Summary of Event Response
The behaviour of web.EventFunc is controlled by it's return type web.EventResponse
PageTitleset the html head title, It not only set when render html page directly which is request the url directly from the browser. Also use javascript to set the page title when you do push state AJAX request to load the pageBodyis the set toweb.PageResponse's body whenReload = trueis set, Or set to the partial html component when usingReloadPortalstogether withweb.Portal().EventFunc("related")Reloadis to reload theweb.PageFunc, before reload, you can setctx.Flashobject to let the event func render the page differently (flash message, validation errors, etc)Locationis to change the browser url with push state, and AJAX load the page of that urlRedirectURLis to change the browser url without AJAX, reload the whole page html includes it's head script, css assetsReloadPortalsis for reload the portal that usesweb.Portal().EventFunc("related")UpdatePortalsupdate the portal specified by the nameweb.Portal().Name("hello"),pu.AfterLoadedset the javascript function that execute after the portal is updated, for example:VarsScript: "setTimeout(function(){ comp.vars.drawer2 = true }, 100)"Datais for any AJAX call that want pure JSON, you can seter.Data = myobjto any object that will marshals to JSON, and on the client side use javascript to utilize them