Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: feat(table): enhancements for table action system #182

Closed
wants to merge 7 commits into from

Conversation

schoenj
Copy link
Contributor

@schoenj schoenj commented Jul 1, 2021

re #177

@@ -13,7 +16,7 @@ const MAX_SAFE_INTEGER = 9007199254740991;
export interface PsTableDataSourceOptions<TData, TTrigger = any> {
loadTrigger$?: Observable<TTrigger>;
loadDataFn: (updateInfo: IExtendedPsTableUpdateDataInfo<TTrigger>) => Observable<TData[] | IPsTableFilterResult<TData>>;
actions?: IPsTableAction<TData>[];
actions?: IPsTableAction<TData>[] | Observable<IPsTableAction<TData>[]>;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a fan of this, this increases complexity and code size quite a bit

<mat-icon [style.color]="action.iconColor">{{ action.icon }}</mat-icon>
{{ action.label }}
</button>
<ng-container *ngIf="action.isLoading || !action.hasChildren; else branch">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the changes here could have a substantial performance impact. all that s ifs and templates are the reason for the current performance problems. with this we have even more of them.

@schoenj schoenj closed this Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants