on 05-07-2014 12:38 PM
I have created three panels and second panel contains jquery animation. On button click respective panels are displayed ,the code for animation is written on onAfterRendering() function. when the second panel is loaded first, animation effects work but when we navigate through another panels by using onClick of button and Come back to second panel the effects are not working..
I have written the following code on onAfterRendering function of view.On loading the effects are visible but when filter is applied on tile container the following effect for mouseover not working.
code snippet:
onAfterRendering : function(evt) {
//$("#idProductPane2").hide();
$("button[id*='__button']").css('visibility', 'hidden');
$("div[id^='idProductTile']").mouseover
(function() {
TiD=this.id;
tileData=this.children[1].children;
$(this).css("background-color", "white");
$(this).css("border", "groove");
$(this).css("border-bottom-width", "0.8em");
$(this).css("border-right-width","0.4em");
$(this).find("button[id^='__button']").css('visibility', 'visible');
});
$("div[id^='idProductTile']").mouseout(function() {
$(this).css("background-color", "white");
$(this).css("border", "none");
$("button[id^='__button']").css('visibility', 'hidden');
});
how to re render the effects ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A complete working example would be very helpful. For an example of setting this up, see http://jsbin.com/sidiq/1/edit?html,output
A few things to consider:
Finally, onAfterRendering may be the wrong place to do mouseover effects -- SAPUI5 has extensive built-in support in the library for interaction events (you'll unfortunately have to dig through the debug sources to get them, the documentation is missing this -- but for starters see https://sapui5.hana.ondemand.com/sdk/#docs/api/symbols/jQuery.sap.html#.ControlEvents and https://sapui5.hana.ondemand.com/sdk/#docs/api/symbols/jQuery.sap.PseudoEvents.html ).
can you create a snippet ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.