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"});

  1. you have created html label non control element. should create textview element.

  2. 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

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -