[AAE-2617] To get access to datatable component from process-list (#7068)

This commit is contained in:
Sushmitha V
2021-06-10 13:57:49 +05:30
committed by GitHub
parent 6400fd6ba8
commit 60ff0fc387

View File

@@ -15,11 +15,11 @@
* limitations under the License. * limitations under the License.
*/ */
import { Component, ViewEncapsulation, OnChanges, AfterContentInit, ContentChild, Output, EventEmitter, SimpleChanges, Input } from '@angular/core'; import { Component, ViewEncapsulation, OnChanges, AfterContentInit, ContentChild, Output, EventEmitter, SimpleChanges, Input, ViewChild } from '@angular/core';
import { DataTableSchema, PaginatedComponent, import { DataTableSchema, PaginatedComponent,
CustomEmptyContentTemplateDirective, AppConfigService, CustomEmptyContentTemplateDirective, AppConfigService,
UserPreferencesService, PaginationModel, UserPreferencesService, PaginationModel,
UserPreferenceValues, DataRowEvent, CustomLoadingContentTemplateDirective, DataCellEvent, DataRowActionEvent } from '@alfresco/adf-core'; UserPreferenceValues, DataRowEvent, CustomLoadingContentTemplateDirective, DataCellEvent, DataRowActionEvent, DataTableComponent } from '@alfresco/adf-core';
import { ProcessListCloudService } from '../services/process-list-cloud.service'; import { ProcessListCloudService } from '../services/process-list-cloud.service';
import { BehaviorSubject } from 'rxjs'; import { BehaviorSubject } from 'rxjs';
import { processCloudPresetsDefaultModel } from '../models/process-cloud-preset.model'; import { processCloudPresetsDefaultModel } from '../models/process-cloud-preset.model';
@@ -36,6 +36,9 @@ export class ProcessListCloudComponent extends DataTableSchema implements OnChan
static PRESET_KEY = 'adf-cloud-process-list.presets'; static PRESET_KEY = 'adf-cloud-process-list.presets';
@ViewChild(DataTableComponent)
dataTable: DataTableComponent;
@ContentChild(CustomEmptyContentTemplateDirective) @ContentChild(CustomEmptyContentTemplateDirective)
emptyCustomContent: CustomEmptyContentTemplateDirective; emptyCustomContent: CustomEmptyContentTemplateDirective;