|
|
@ -22,6 +22,7 @@ import { |
|
|
Injector, |
|
|
Injector, |
|
|
Input, |
|
|
Input, |
|
|
NgZone, |
|
|
NgZone, |
|
|
|
|
|
OnDestroy, |
|
|
OnInit, |
|
|
OnInit, |
|
|
StaticProvider, |
|
|
StaticProvider, |
|
|
ViewChild, |
|
|
ViewChild, |
|
|
@ -78,8 +79,8 @@ import { |
|
|
getColumnDefaultVisibility, |
|
|
getColumnDefaultVisibility, |
|
|
getColumnSelectionAvailability, |
|
|
getColumnSelectionAvailability, |
|
|
getColumnWidth, |
|
|
getColumnWidth, |
|
|
getHeaderTitle, |
|
|
|
|
|
getEntityValue, |
|
|
getEntityValue, |
|
|
|
|
|
getHeaderTitle, |
|
|
getRowStyleInfo, |
|
|
getRowStyleInfo, |
|
|
getTableCellButtonActions, |
|
|
getTableCellButtonActions, |
|
|
noDataMessage, |
|
|
noDataMessage, |
|
|
@ -129,7 +130,7 @@ interface EntitiesTableWidgetSettings extends TableWidgetSettings { |
|
|
templateUrl: './entities-table-widget.component.html', |
|
|
templateUrl: './entities-table-widget.component.html', |
|
|
styleUrls: ['./entities-table-widget.component.scss', './table-widget.scss'] |
|
|
styleUrls: ['./entities-table-widget.component.scss', './table-widget.scss'] |
|
|
}) |
|
|
}) |
|
|
export class EntitiesTableWidgetComponent extends PageComponent implements OnInit, AfterViewInit { |
|
|
export class EntitiesTableWidgetComponent extends PageComponent implements OnInit, AfterViewInit, OnDestroy { |
|
|
|
|
|
|
|
|
@Input() |
|
|
@Input() |
|
|
ctx: WidgetContext; |
|
|
ctx: WidgetContext; |
|
|
@ -141,6 +142,7 @@ export class EntitiesTableWidgetComponent extends PageComponent implements OnIni |
|
|
public displayPagination = true; |
|
|
public displayPagination = true; |
|
|
public enableStickyHeader = true; |
|
|
public enableStickyHeader = true; |
|
|
public enableStickyAction = true; |
|
|
public enableStickyAction = true; |
|
|
|
|
|
public hideActionCellButtons = true; |
|
|
public pageSizeOptions; |
|
|
public pageSizeOptions; |
|
|
public pageLink: EntityDataPageLink; |
|
|
public pageLink: EntityDataPageLink; |
|
|
public sortOrderProperty: string; |
|
|
public sortOrderProperty: string; |
|
|
@ -290,6 +292,7 @@ export class EntitiesTableWidgetComponent extends PageComponent implements OnIni |
|
|
this.displayPagination = isDefined(this.settings.displayPagination) ? this.settings.displayPagination : true; |
|
|
this.displayPagination = isDefined(this.settings.displayPagination) ? this.settings.displayPagination : true; |
|
|
this.enableStickyHeader = isDefined(this.settings.enableStickyHeader) ? this.settings.enableStickyHeader : true; |
|
|
this.enableStickyHeader = isDefined(this.settings.enableStickyHeader) ? this.settings.enableStickyHeader : true; |
|
|
this.enableStickyAction = isDefined(this.settings.enableStickyAction) ? this.settings.enableStickyAction : true; |
|
|
this.enableStickyAction = isDefined(this.settings.enableStickyAction) ? this.settings.enableStickyAction : true; |
|
|
|
|
|
this.hideActionCellButtons = isDefined(this.settings.hideActionCellButtons) ? this.settings.hideActionCellButtons : true; |
|
|
this.columnDisplayAction.show = isDefined(this.settings.enableSelectColumnDisplay) ? this.settings.enableSelectColumnDisplay : true; |
|
|
this.columnDisplayAction.show = isDefined(this.settings.enableSelectColumnDisplay) ? this.settings.enableSelectColumnDisplay : true; |
|
|
|
|
|
|
|
|
this.rowStylesInfo = getRowStyleInfo(this.settings, 'entity, ctx'); |
|
|
this.rowStylesInfo = getRowStyleInfo(this.settings, 'entity, ctx'); |
|
|
|