javascript - ArialLabelledBy is not working -
i have control called _message. using sapui5 trying create text label , element id using jquery , set ariallabelledby element. when turn on narrator , click/hover or blue outline around th element selected doesn't read anything.
am doing wrong?
var olabel = new sap.ui.commons.label({text: "message screen reader"}); this._msgid = this._message.getid(); var textmsg = jquery("#" + this._msgid); textmsg.addarialabelledby(olabel);
var olabel = new sap.ui.commons.label({text: "message screen reader"});
you have created html
label
non control element. should create textview element.you have created label object, have not inserted object in dom.
you have insert object in dom before making association addarialabelledby
reference existing object. (see placeat
instance)
Comments
Post a Comment