Is there a limit of custom buttons you can use?
Is there a limit of custom buttons you can use?
![lmartinez](https://secure.gravatar.com/avatar/1374bf89bb5c4dda1faca6561d388087/?default=https%3A%2F%2Fvanillicon.com%2F1374bf89bb5c4dda1faca6561d388087_200.png&rating=g&size=120)
I am using a wide amount of custom buttons on my datatable, I just wanted to ask if there is a limit of custom buttons I can have? At one point there can a total of 7 buttons being shown depending on certain states, and for some reason when all 7 are being shown the last button becomes unresponsive. I wasn't able to find anything here stating there is a limit, so wanted to ask if someone knew the answer.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi @Imartinez,
I don't think there is... And if you're running out of space on your page, you can create collections, as in this example here.
Cheers,
Colin
Thanks @colin
I do use collections also, they are useful for my needs.
It seems that my issue happens when I use smaller screen resolutions, they become unresponsive. Once I revert back to my original size they work fine.
I know screen resolution changes can affect CSS styling, but am surprised the buttons become unresponsive. If you're able to generate a test case for that, we'd be happy to take a look.
Cheers,
Colin
I made a small error in my code, I changed my DOM option string and that managed to fix the trick. Honest mistake.
to
They happen![:) :)](https://datatables.net/forums/resources/emoji/smile.png)