-
Notifications
You must be signed in to change notification settings - Fork 132
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
[sourcing]: Expand/Collapse All buttons should be on the left most of the toolbar and need tooltips #9519
Comments
This is a little high priority as we plan to deliver these areas to customer. cc: @droshev , @mikerodonnell89 |
Issue logged for tooltips:#9551 |
Regarding placement of expand all / collapse all buttons , we contacted UX designers and as per fiori standard , the ask is to keep these buttons before sort button cc: @droshev , @fkolar , @mikerodonnell89 |
From the first picture I see that that the "centre" of 2 tables is also not same in the same page. |
@I543348 , On the picture you provided you say you like the left most position, but on the UX design link you sent it is positioned to the right . What is the final expectation?
|
@I543348 The buttons are in the middle as the toolbar has few other features(title information with the number of items on the left and search on the right) If you pass the proper titling, which will help the accessibility, you won't see an empty gap. |
Hi @droshev , |
If you need it on the right why:
<fdp-table-toolbar-actions>
<fdp-button glyph="expand-all" (click)="refToTable.expandAll()"></fdp-button>
<fdp-button glyph="collapse-all" (click)="refToTable..collapseAll()"></fdp-button>
<fd-toolbar-spacer></fd-toolbar-spacer>
</fdp-table-toolbar-actions> |
I see some weird performance issues with this suggested workaround, please check this recording below. workaround.movsample code snippet
ts file
|
Yes, this is something to do with the how change detection is handled. There are tons of issues on the Angular side (link). It should work for you without a problem if your parent component is not OnPush. When OnPush, you need to call markForCheck from child component. Internal component for certain cases should prefer using markForCheck, instead of it detectChanges. So you can use. I just test it on one of the docs samples: <fdp-table
#table ...
<fdp-table-toolbar #toolbar title="Order Line Items"
[hideItemCount]="false" [showExpandCollapseButtons]="false">
<fdp-table-toolbar-actions>
<fdp-button glyph="expand-all" (click)="exp(table)"></fdp-button>
<fdp-button glyph="collapse-all" (click)="cola(table)"></fdp-button>
<fd-toolbar-spacer></fd-toolbar-spacer>
</fdp-table-toolbar-actions> exp(tree: any) {
tree.expandAll();
tree._cdr.markForCheck();
}
cola(tree: any) {
tree.collapseAll();
tree._cdr.markForCheck();
}
I expect that in your app code you will do this more elegant. This is quick test |
Yes this last workaround works perfectly fine ! |
Great. Also I think @droshev , this issue is ready to be closed. There are no father plan to change the data-table. Unless the whole UX is revised by central UX and this case applies to all. |
This caused alignment issue, so I think it's a bug.
The Expand/Collapse All buttons are now in the middle of the toolbar. However, it does not look as some tables will not see it as the middle. Also, we don't have any tooltips for these buttons.
Angular 15
Add Expand/Collapse All buttons. The buttons are shown in the middle like the following:
I've tried to move to the left most position, it looks much nicer:
Please also add tooltips for these buttons.
Please provide relevant source code if applicable.
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: