How to add "aria-label" attribute to the button

How to add "aria-label" attribute to the button

tthai01tthai01 Posts: 1Questions: 1Answers: 0

Allan,

I have tried to add the "aria-label" to those export buttons(see below) but those buttons disappear . Any suggestion on how to add the aria-label attribute to the button? Thanks.

attr: {
title: 'export to excel',
aria-label: 'export'
}
}

Thanks.

Answers

  • allanallan Posts: 63,075Questions: 1Answers: 10,384 Site admin

    That's a syntax error in Javascript and your browser should be showing an error in the developer console. You need to quote the "aria-label" part:

    attr: {
      title: 'export to excel',
      'aria-label': 'export'
    }
    

    Allan

This discussion has been closed.