Is there any way to assign an id to a button?

Is there any way to assign an id to a button?

oneillgoneillg Posts: 33Questions: 9Answers: 0

I saw a reference to attr: { id: 'buttonID' } but it doesn't seem to work. Thanks. -Gabe

Answers

  • tangerinetangerine Posts: 3,110Questions: 25Answers: 364

    if you are referring to DataTables' Buttons extension, then see the documentation:
    https://datatables.net/reference/option/buttons.buttons.attr

  • allanallan Posts: 54,688Questions: 1Answers: 8,553 Site admin

    ``attr: { id: 'buttonID' }` should work. If it doesn't, make sure you are using the latest version of Buttons (1.5.1 at the moment), and if that doesn't resolve it, can you link to a test case showing the issue please?

    Allan

  • oneillgoneillg Posts: 33Questions: 9Answers: 0

    Sorry I didn't respond to this. Must have figured it out. Thanks.

This discussion has been closed.