Change custom text searchBuilder background
Change custom text searchBuilder background
sarooptrivedi
Posts: 62Questions: 19Answers: 2
Hello Team,
As per below example I changed my searchBuilder text but filter count not appear in custom text.
https://datatables.net/extensions/searchbuilder/examples/customisation/buttonText.html
I need to change the counter and color back ground when filter applied as per below example for custom text of searchbuilder.
This question has an accepted answers - jump to answer
Answers
Maybe I'm not understanding the issue but the filter count seems to work in your test case. See the screenshot:
Kevin
No it is not working. This is old example I saw you. This is not custom text button. If you add the custom text for button then this color will not work
This is button code
{
extend: 'searchBuilder',
className:'Filtre',
config: {
filterChanged: function (count) {
if (count) {
Please update the test with your code to show the issues you are having so we can help debug.
Kevin
I figure out with issue. Above code is working as expected. I face the issue because in my site.css class is override the datatables css class.
Thank you for looking