CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Region that Expands on top onmouseover

Suggest new components/features

by Joel » 28 Feb 2013 17:49

Do you have a region that could expand to the width of its items, on top of the other regions, when the mouse is placed on the region?
Joel
 
Posts: 18
Joined: 11 Feb 2013 16:10

by Jorge Sousa » 28 Feb 2013 18:18

Hi

That can be done with TIWCGJQRegion.JQEvents.OnMouseOver.Script

And executes a local browser script, ie, doesn't go to server, are you interested? We can find you a script.

Also can be done with TIWCGJQRegion.JQEvents.OnMouseOver.OnEvent but this will call server, which is not advisable for mouse over.

Regards

cgdevtools
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Joel » 28 Feb 2013 21:10

Yes. I am interested in the local broswer script.
Joel
 
Posts: 18
Joined: 11 Feb 2013 16:10

by Jorge Sousa » 28 Feb 2013 21:37

Ok

Give me a few time, and I'll post it here.

Regards

cgdevtools
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Jorge Sousa » 01 Mar 2013 16:46

Joel

I was about to check this out


Do you have a region that could expand to the width of its items, on top of the other regions, when the mouse is placed on the region?


As I understood, if the mouse is placed on the region, the region will resize to the accomodate al the items in it?

Could you please detail a little more. Thanks

Regards

cg
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Joel » 01 Mar 2013 16:55

Basically I have a treeview in a region on the left side of a page. Some of the treeview items are quite wide so you can not read them until you place your mouse on the region. Then it expands the region. This is what my web devs are doing in Java script in the template.

I was wanting to get away from having to write so much java script, but Maybe I just need to keep doing this if there is not an easier way with your tools. See what you think with the code below.


$(function(){
//tree view tests
var newTreeMaskHeight
var newTreeContainerWidth

function setInitialTreeView(){
if(document.getElementById('IWTVROLEContainer')){
var f = $("#webDeskFooterWrapper");
var tc = $("#IWTVROLEContainer");
//var window_width = $(window).width();
var offset_f = f.offset();
var offset_tc = tc.offset();
footerTop = offset_f.top
treeContainerTop = offset_tc.top
newTreeMaskHeight = (footerTop - treeContainerTop) - 20;
newTreeContainerWidth = $("#IWTVROLEContainer").width();
// $("#IWRBODYSIDEMENUTREECL01").height(newTreeMaskHeight);
// $("#IWRBODYSIDEMENUTREECL01").css({"overflow":"hidden"});
$("#IWTVROLE").css({"height":newTreeMaskHeight});
}
}

function setTreeViewHoverOverStatus(){
if(document.getElementById('IWTVROLEContainer')){
newTreeContainerWidth = $("#IWTVROLEContainer").width();
$("#IWTVROLE").css({"position":"absolute"});
$("#IWTVROLE").css({"z-index":"998"});
//$("#IWTVEQUIPTREE").css({"width":"auto"});
$("#IWTVROLE").css({"width":newTreeContainerWidth+15});
$("#IWTVROLE").css({"height":newTreeMaskHeight});
$("#IWTVROLE").css({"padding-right":"20"});
$("#IWTVROLE").css({"padding-bottom":"5"});
$("#IWTVROLE").css({"overflow-y":"scroll"});
$("#IWTVROLE").css({"border":"1px solid #e5e5e5"});

//$("#IWCBTICKETITEMSTATUS").css({"visibility":"hidden"});
}
}
function setTreeViewHoverOutStatus(){
if(document.getElementById('IWTVROLEContainer')){
$("#IWTVROLE").css({"position":"relative"});
$("#IWTVROLE").css({"overflow":"hidden"});
$("#IWTVROLE").width(160);
$("#IWTVROLE").css({"overflow-y":"hidden"});
$("#IWTVROLE").css({"padding-right":"0"});
$("#IWTVROLE").css({"padding-bottom":"0"});
$("#IWTVROLE").css({"border":"1px solid #F3F3F3"});

//$("#IWCBTICKETITEMSTATUS").css({"visibility":"visible"});
}




}
setInitialTreeView();

$(window).resize(function(){
setInitialTreeView();
});
$("#IWTVROLEContainer").resize(function(){
setInitialTreeView();
// setTreeViewHoverOverStatus();
});
$("#IWTVROLE").resize(function(){
setInitialTreeView();
// setTreeViewHoverOverStatus();
});


$('#IWTVROLEContainer a').click(
function(){
setTreeViewHoverOverStatus();
}
);

$('#IWTVROLE').hover(
function(){ setTreeViewHoverOverStatus(); }
,
function(){ setTreeViewHoverOutStatus(); }
);

});
Joel
 
Posts: 18
Joined: 11 Feb 2013 16:10

by Jorge Sousa » 01 Mar 2013 17:55

Hi

Why don't you try to use our JQTooltip? It does precisely that.

And if you're using JQTreeView, we can adapt it internally.

What do you think?

Regards

cgdevtools
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Joel » 06 Mar 2013 16:35

Thanks. I will try the tooltip.
Joel
 
Posts: 18
Joined: 11 Feb 2013 16:10


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 3 guests

Contact Us.