wrapper for a single button

wrapper for a single button

rf1234rf1234 Posts: 2,988Questions: 87Answers: 421

I want to attach a tooltip to a disabled button. As far as I know that will only work if I use a wrapper for this particular button.
I found this:
https://datatables.net/reference/option/buttons.dom.container
This only allows me to set a container for all of my buttons, not for a single one.

https://datatables.net/reference/option/buttons.dom.container
This allows me to GET the container of all or an individual button. But it doesn't allow me to SET the container of an individual button.

How do I set the container for an individual button? Or is there another way to attach a tooltip to a disabled button?

This question has an accepted answers - jump to answer

Answers

  • rf1234rf1234 Posts: 2,988Questions: 87Answers: 421
    edited July 2022

    Tried jQuery which really did the wrapping but it didn't really work in Data Tables. Then I found a different solution: I am not disabling the field for non-subscribers. So they see the tooltip and when they click they see a popup to contact our sales guys.

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    Answer ✓

    Yeah I don't think there is a way to do exactly what you are looking for I'm afraid. You might be able to use jQuery's wrap method on the button's node, but it might mess with the styling a little.

    Good to hear you have a workaround.

    Allan

Sign In or Register to comment.