|
559 | 559 | {
|
560 | 560 | title: i18nService.getSafeText('gridMenu.exporterAllAsCsv'),
|
561 | 561 | action: function ($event) {
|
562 |
| - this.grid.api.exporter.csvExport( uiGridExporterConstants.ALL, uiGridExporterConstants.ALL ); |
| 562 | + grid.api.exporter.csvExport( uiGridExporterConstants.ALL, uiGridExporterConstants.ALL ); |
563 | 563 | },
|
564 | 564 | shown: function() {
|
565 |
| - return this.grid.options.exporterMenuCsv && this.grid.options.exporterMenuAllData; |
| 565 | + return grid.options.exporterMenuCsv && grid.options.exporterMenuAllData; |
566 | 566 | },
|
567 | 567 | order: grid.options.exporterMenuItemOrder
|
568 | 568 | },
|
569 | 569 | {
|
570 | 570 | title: i18nService.getSafeText('gridMenu.exporterVisibleAsCsv'),
|
571 | 571 | action: function ($event) {
|
572 |
| - this.grid.api.exporter.csvExport( uiGridExporterConstants.VISIBLE, uiGridExporterConstants.VISIBLE ); |
| 572 | + grid.api.exporter.csvExport( uiGridExporterConstants.VISIBLE, uiGridExporterConstants.VISIBLE ); |
573 | 573 | },
|
574 | 574 | shown: function() {
|
575 |
| - return this.grid.options.exporterMenuCsv && this.grid.options.exporterMenuVisibleData; |
| 575 | + return grid.options.exporterMenuCsv && grid.options.exporterMenuVisibleData; |
576 | 576 | },
|
577 | 577 | order: grid.options.exporterMenuItemOrder + 1
|
578 | 578 | },
|
579 | 579 | {
|
580 | 580 | title: i18nService.getSafeText('gridMenu.exporterSelectedAsCsv'),
|
581 | 581 | action: function ($event) {
|
582 |
| - this.grid.api.exporter.csvExport( uiGridExporterConstants.SELECTED, uiGridExporterConstants.VISIBLE ); |
| 582 | + grid.api.exporter.csvExport( uiGridExporterConstants.SELECTED, uiGridExporterConstants.VISIBLE ); |
583 | 583 | },
|
584 | 584 | shown: function() {
|
585 |
| - return this.grid.options.exporterMenuCsv && this.grid.options.exporterMenuSelectedData && |
586 |
| - ( this.grid.api.selection && this.grid.api.selection.getSelectedRows().length > 0 ); |
| 585 | + return grid.options.exporterMenuCsv && grid.options.exporterMenuSelectedData && |
| 586 | + ( grid.api.selection && grid.api.selection.getSelectedRows().length > 0 ); |
587 | 587 | },
|
588 | 588 | order: grid.options.exporterMenuItemOrder + 2
|
589 | 589 | },
|
590 | 590 | {
|
591 | 591 | title: i18nService.getSafeText('gridMenu.exporterAllAsPdf'),
|
592 | 592 | action: function ($event) {
|
593 |
| - this.grid.api.exporter.pdfExport( uiGridExporterConstants.ALL, uiGridExporterConstants.ALL ); |
| 593 | + grid.api.exporter.pdfExport( uiGridExporterConstants.ALL, uiGridExporterConstants.ALL ); |
594 | 594 | },
|
595 | 595 | shown: function() {
|
596 |
| - return this.grid.options.exporterMenuPdf && this.grid.options.exporterMenuAllData; |
| 596 | + return grid.options.exporterMenuPdf && grid.options.exporterMenuAllData; |
597 | 597 | },
|
598 | 598 | order: grid.options.exporterMenuItemOrder + 3
|
599 | 599 | },
|
600 | 600 | {
|
601 | 601 | title: i18nService.getSafeText('gridMenu.exporterVisibleAsPdf'),
|
602 | 602 | action: function ($event) {
|
603 |
| - this.grid.api.exporter.pdfExport( uiGridExporterConstants.VISIBLE, uiGridExporterConstants.VISIBLE ); |
| 603 | + grid.api.exporter.pdfExport( uiGridExporterConstants.VISIBLE, uiGridExporterConstants.VISIBLE ); |
604 | 604 | },
|
605 | 605 | shown: function() {
|
606 |
| - return this.grid.options.exporterMenuPdf && this.grid.options.exporterMenuVisibleData; |
| 606 | + return grid.options.exporterMenuPdf && grid.options.exporterMenuVisibleData; |
607 | 607 | },
|
608 | 608 | order: grid.options.exporterMenuItemOrder + 4
|
609 | 609 | },
|
610 | 610 | {
|
611 | 611 | title: i18nService.getSafeText('gridMenu.exporterSelectedAsPdf'),
|
612 | 612 | action: function ($event) {
|
613 |
| - this.grid.api.exporter.pdfExport( uiGridExporterConstants.SELECTED, uiGridExporterConstants.VISIBLE ); |
| 613 | + grid.api.exporter.pdfExport( uiGridExporterConstants.SELECTED, uiGridExporterConstants.VISIBLE ); |
614 | 614 | },
|
615 | 615 | shown: function() {
|
616 |
| - return this.grid.options.exporterMenuPdf && this.grid.options.exporterMenuSelectedData && |
617 |
| - ( this.grid.api.selection && this.grid.api.selection.getSelectedRows().length > 0 ); |
| 616 | + return grid.options.exporterMenuPdf && grid.options.exporterMenuSelectedData && |
| 617 | + ( grid.api.selection && grid.api.selection.getSelectedRows().length > 0 ); |
618 | 618 | },
|
619 | 619 | order: grid.options.exporterMenuItemOrder + 5
|
620 | 620 | }
|
|
0 commit comments