|
687 | 687 | {
|
688 | 688 | title: i18nService.getSafeText('gridMenu.exporterAllAsExcel'),
|
689 | 689 | action: function ($event) {
|
690 |
| - this.grid.api.exporter.excelExport( uiGridExporterConstants.ALL, uiGridExporterConstants.ALL ); |
| 690 | + grid.api.exporter.excelExport( uiGridExporterConstants.ALL, uiGridExporterConstants.ALL ); |
691 | 691 | },
|
692 | 692 | shown: function() {
|
693 |
| - return this.grid.options.exporterMenuExcel && this.grid.options.exporterMenuAllData; |
| 693 | + return grid.options.exporterMenuExcel && grid.options.exporterMenuAllData; |
694 | 694 | },
|
695 | 695 | order: grid.options.exporterMenuItemOrder + 6
|
696 | 696 | },
|
697 | 697 | {
|
698 | 698 | title: i18nService.getSafeText('gridMenu.exporterVisibleAsExcel'),
|
699 | 699 | action: function ($event) {
|
700 |
| - this.grid.api.exporter.excelExport( uiGridExporterConstants.VISIBLE, uiGridExporterConstants.VISIBLE ); |
| 700 | + grid.api.exporter.excelExport( uiGridExporterConstants.VISIBLE, uiGridExporterConstants.VISIBLE ); |
701 | 701 | },
|
702 | 702 | shown: function() {
|
703 |
| - return this.grid.options.exporterMenuExcel && this.grid.options.exporterMenuVisibleData; |
| 703 | + return grid.options.exporterMenuExcel && grid.options.exporterMenuVisibleData; |
704 | 704 | },
|
705 | 705 | order: grid.options.exporterMenuItemOrder + 7
|
706 | 706 | },
|
707 | 707 | {
|
708 | 708 | title: i18nService.getSafeText('gridMenu.exporterSelectedAsExcel'),
|
709 | 709 | action: function ($event) {
|
710 |
| - this.grid.api.exporter.excelExport( uiGridExporterConstants.SELECTED, uiGridExporterConstants.VISIBLE ); |
| 710 | + grid.api.exporter.excelExport( uiGridExporterConstants.SELECTED, uiGridExporterConstants.VISIBLE ); |
711 | 711 | },
|
712 | 712 | shown: function() {
|
713 |
| - return this.grid.options.exporterMenuExcel && this.grid.options.exporterMenuSelectedData && |
714 |
| - ( this.grid.api.selection && this.grid.api.selection.getSelectedRows().length > 0 ); |
| 713 | + return grid.options.exporterMenuExcel && grid.options.exporterMenuSelectedData && |
| 714 | + ( grid.api.selection && grid.api.selection.getSelectedRows().length > 0 ); |
715 | 715 | },
|
716 | 716 | order: grid.options.exporterMenuItemOrder + 8
|
717 | 717 | }
|
|
0 commit comments