spAriaUtil - Client

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 1분
  • The spAriaUtil API provides methods to show messages on a screen reader.

    This API is an angular service that you can use in Service Portal widget client scripts.

    spAriaUtil - sendLiveMessage(String message)

    Announce a message to a screen reader.

    The sendLiveMessage() method injects text into an aria-live region on the page. The default setting for an aria-live region is assertive, which means that messages are announced immediately. This can annoy and confuse users if used too frequently.

    표 1. Parameters
    Name Type Description
    message String The message to be shown.
    표 2. Returns
    Type Description
    void
    function(spAriaUtil) {
      /* widget controller */
    
      spAriaUtil.sendLiveMessage('Hello world!');
    }