primefaces how i use postDrawHooks?

UI Components for JSF
Post Reply
vitorfarias
Posts: 1
Joined: 04 Jun 2014, 03:02

17 Sep 2014, 15:33

I trying to use postDrawHooks on primefaces 4.0 barchart extender...

For to bring the series to front and send the canvasOverlay rectangle to back
but I don't know how I use the following code on primefaces.

Code: Select all

		$.jqplot.postDrawHooks.push(function() {
	        $(".jqplot-overlayCanvas-canvas").css('z-index', '0'); //send overlay canvas to back  
	        $(".jqplot-series-canvas").css('z-index', '1'); //send series canvas to front         
	        $(".jqplot-highlighter-tooltip").css('z-index', '2'); //make sure the tooltip is over the series
	        $(".jqplot-event-canvas").css('z-index', '5'); //must be on the very top since it is responsible for event catching and propagation
	    });
someone can help me ?

thanks a lot.

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

18 Sep 2014, 14:21

please post in the normal forum. Not themes related

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 23 guests