data-binding for <select> title is broken?
In order to meet our accessibility (AODA/WCAG 2.0) requirements, we have been trying to implement the title property to some <select> html tags in our custom components. The data binding to string from our locale files is working fine so far, with one exception. If we try to data bind a locale string to the title property, nothing shows up in the browser but all other strings from our locale files are working. We are using the same syntax for the <select> tags as we are for any other item we've added a title parameter to - others work but <select>'s don't. Here is basically what we have in the html page:
<select data-binding="{@title: @language-layerTooltip}">
<option data-binding.....></opton>
</select>
and in the locale file we have
"language-layerTooltip":"Pick the layer you want to select features from"
Has anyone else had problems with data-binding to <select> objects? Is this a known bug with the API?
Peter.
-
Peter,
The @title binding directive is not supported. Please try removing the "@"; that should add the title property to your <select> tags
<select data-binding="{title : @language-layerTooltip}">
<option data-binding.....></opton>
</select>See screenshot below for reference, the layer theme selector has been configured with a title that is bound to a locale string.
/customer/servlet/servlet.FileDownload?file=00P6000000elTP9EAM
Hope this helps,
--Alejandro
0 -
Doh..... you know how you can look at something so many times, that you just can't see what's right in front of you..... of course, it's obvious now and all the other tag parameters were without the @ sign. I think what threw me was that I was looking at a <label> right above the <select> and it does have an @text.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare