change button's color
change button's color
wijwij
Posts: 54Questions: 12Answers: 0
in DataTables
Hi,
I managed to change the color of the button using : className: 'btn btn-success'
The problem is when I select any row in the data table, the button reset to its default color (light grey)
any help will be appreciated
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
It seems to be behaving here: http://live.datatables.net/vasowohi/1/edit . Could you look at that, please, and see if it helps. If it's still not working for you, please can you update my example, or link to your page, so that we can see the problem.
Cheers,
Colin
Thanks, Colin for your answer. Here is my code:
When I compared it to your sample code, I found it identical, but not sure why it is not working on my side
May be it is because I am using Bootstrap class for the button "btn btn-danger'?
Am I missing anything?
Hi Colin,
Nevermind, I found a topic here that helped me figure it out.
For whoever facing the same problem, here is what I did:
I added those 2 lines above the Editor initialization
and that was it!
Thanks Colin
Ah that's it, good find!
Colin