on 2014 Jun 15 8:18 PM
I want to handle a hashtag change in my SAPUI5 app. For examples sake, let's say I want to throw a popup with the value of the hashtag, what's the correct way to do it?
Thanks
Request clarification before answering.
Hi Joao,
I think you can use the sap.ui.core.routing.HashChanger to attach an "hashChanged" event handler.
var oHashChanger = HashChanger.getInstance();
oHashChanger.attachEvent("hashChanged", function(oEvent) {
alert(oEvent.getParameter("newHash") + "," + oEvent.getParameter("oldHash"));
});
https://sapui5.netweaver.ondemand.com/sdk/#docs/api/symbols/sap.ui.core.routing.HashChanger.html
Regards,
Jason
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
64 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.