DEV: quick-access-panel setting for viewAllLabel (#16977)

This commit is contained in:
Kris 2022-06-02 10:13:41 -04:00 committed by GitHub
parent 7c4e2d33fa
commit 8e75f8c371
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,9 @@ export default createWidget("quick-access-panel", {
tagName: "div.quick-access-panel",
emptyStatePlaceholderItemKey: null,
emptyStateWidget: null,
settings: {
viewAllLabel: null,
},
buildKey: () => {
throw Error('Cannot attach abstract widget "quick-access-panel".');
@ -128,6 +131,7 @@ export default createWidget("quick-access-panel", {
title: "view_all",
titleOptions: { tab },
icon: "chevron-down",
label: this.settings.viewAllLabel,
className: "btn btn-default btn-icon no-text show-all",
"aria-label": "view_all",
ariaLabelOptions: { tab },