Skip to content

Commit

Permalink
Cleaned up documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed Spencer committed Jul 28, 2009
1 parent db9204e commit c85da40
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
13 changes: 7 additions & 6 deletions Printer.js
@@ -1,19 +1,20 @@
/**
* @class GetIt.GridPrinter
* @author Ed Spencer (edward@domine.co.uk)
* Helper class to easily print the contents of a grid. Will open a new window with a table where the first row
* contains the headings from your column model, and with a row for each item in your grid's store. When formatted
* with appropriate CSS it should look very similar to a default grid. If renderers are specified in your column
* model, they will be used in creating the table. Override headerTpl and bodyTpl to change how the markup is generated
* Class providing a common way of printing Ext.Components. Ext.ux.Printer.print delegates the printing to a specialised
* renderer class (each of which subclasses Ext.ux.Printer.BaseRenderer), based on the xtype of the component.
* Each renderer is registered with an xtype, and is used if the component to print has that xtype.
*
* Usage:
* See the files in the renderers directory to customise or to provide your own renderers.
*
* Usage example:
*
* var grid = new Ext.grid.GridPanel({
* colModel: //some column model,
* store : //some store
* });
*
* Ext.ux.GridPrinter.print(grid);
* Ext.ux.Printer.print(grid);
*
*/
Ext.ux.Printer = function() {
Expand Down
4 changes: 1 addition & 3 deletions renderers/Base.js
Expand Up @@ -3,9 +3,7 @@
* @author Ed Spencer
* Abstract base renderer class. Don't use this directly, use a subclass instead
*/
Ext.ux.Printer.BaseRenderer = function() {

};
Ext.ux.Printer.BaseRenderer = function() {};

Ext.ux.Printer.BaseRenderer.prototype = {
/**
Expand Down

0 comments on commit c85da40

Please sign in to comment.