PDA

View Full Version : [2.0][FIXED] Panel tools - should include "print"?



jarrod
15 Jan 2008, 1:07 AM
Will be useful if the Panel tools could include a tool for 'print'... :)

aconran
21 Jan 2008, 10:08 AM
Agreed! I can see how that would be useful. We will just have to stress that Ext does not provide any printing support as I can see how that may confuse users.

I've added it to our list.

kalebwalton
21 Jan 2008, 11:56 AM
+1 - myself and a number of others have requested this in the past as well.

jarrod
21 Jan 2008, 8:37 PM
Agreed! I can see how that would be useful. We will just have to stress that Ext does not provide any printing support as I can see how that may confuse users.

I've added it to our list.

Actually, I think the documentation has already made it quite clear that the buttons don't inherently do much - it is the developers' responsibility to implement the handler... :)

Animal
22 Jan 2008, 12:28 AM
What I would really like is the ability to specify a full Ext.Toolbar to live in a Panel's header element.

jack.slocum
23 Jan 2008, 7:45 PM
That's pretty easy to do Animal. Here's a code snippet I used in a recent project:

CSS:


.x-panel-header .x-toolbar {
position:absolute;
right:5px;
top:3px;
border-width:0 !important;
background:transparent !important;
}


Then I added an afterRender to the Panel:



afterRender : function(){
YourPanel.superclass.afterRender.call(this);
this.header.position();
this.yourToolbar.render(this.header);
}


I think that was it!

For the OP, I agree a print tool item makes sense.

jarrod
24 Jan 2008, 3:23 AM
Oh, didn't realise there was a afterRender hook... /:)
I'm listening to the render event to do up similar toolbars on panel and tab strip headers.

brian.moeskau
28 Jan 2008, 12:27 AM
Print tool added in SVN rev 1609.

watrboy00
28 Jan 2008, 12:37 AM
Sweet deal, will be updating. :)