Skip to content

Commit be7ab1e

Browse files
committed
feat(ui5-flexible-column-layout): add start/mid/endColumnAccessibleName properties (#2483)
1 parent 785817e commit be7ab1e

File tree

2 files changed

+45
-4
lines changed

2 files changed

+45
-4
lines changed

packages/fiori/src/FlexibleColumnLayout.js

+39-3
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,42 @@ const metadata = {
7878
type: Boolean,
7979
},
8080

81+
/**
82+
* Defines the accessibility name for the <code>startColumn</code> region.
83+
*
84+
* @type {string}
85+
* @defaultvalue ""
86+
* @public
87+
* @since 1.0.0-rc.11
88+
*/
89+
startColumnAccessibleName: {
90+
type: String,
91+
},
92+
93+
/**
94+
* Defines the accessibility name for the <code>midColumn</code> region.
95+
*
96+
* @type {string}
97+
* @defaultvalue ""
98+
* @public
99+
* @since 1.0.0-rc.11
100+
*/
101+
midColumnAccessibleName: {
102+
type: String,
103+
},
104+
105+
/**
106+
* Defines the accessibility name for the <code>endColumn</code> region.
107+
*
108+
* @type {string}
109+
* @defaultvalue ""
110+
* @public
111+
* @since 1.0.0-rc.11
112+
*/
113+
endColumnAccessibleName: {
114+
type: String,
115+
},
116+
81117
/**
82118
* Defines the component width in px.
83119
*
@@ -616,15 +652,15 @@ class FlexibleColumnLayout extends UI5Element {
616652
}
617653

618654
get accStartColumnText() {
619-
return this.i18nBundle.getText(FCL_START_COLUMN_TXT);
655+
return this.startColumnAccessibleName || this.i18nBundle.getText(FCL_START_COLUMN_TXT);
620656
}
621657

622658
get accMiddleColumnText() {
623-
return this.i18nBundle.getText(FCL_MIDDLE_COLUMN_TXT);
659+
return this.midColumnAccessibleName || this.i18nBundle.getText(FCL_MIDDLE_COLUMN_TXT);
624660
}
625661

626662
get accEndColumnText() {
627-
return this.i18nBundle.getText(FCL_END_COLUMN_TXT);
663+
return this.endColumnAccessibleName || this.i18nBundle.getText(FCL_END_COLUMN_TXT);
628664
}
629665

630666
get _effectiveLayoutsByMedia() {

packages/fiori/test/pages/FCLApp.html

+6-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,12 @@
177177
</ui5-shellbar>
178178

179179
<!--- FLEXIBLE COLUMN LAYOUT -->
180-
<ui5-flexible-column-layout id="fcl">
180+
<ui5-flexible-column-layout
181+
id="fcl"
182+
start-column-accessible-name="Companies list"
183+
mid-column-accessible-name="Products List"
184+
end-column-accessible-name="Product Details"
185+
>
181186
<div class="column" id="startColumn" slot="startColumn">
182187
<ui5-busyindicator id="startBusy">
183188
<div class="ui5-message-page">

0 commit comments

Comments
 (0)