Set text on SearchPanes Button?
Set text on SearchPanes Button?
I think I must be missing something. I am having trouble setting the text of a searchPanes button.
I have tried the following:
* Setting the "text" option in the button configuration
* Creating a config object with a text option.
Here's a fiddle, where I see "SearchPanes" as the title of both buttons.
* https://jsfiddle.net/FrankLoWa/9ky30w87/2/
Was hoping to see the text specified instead.
$(document).ready(function() {
var table = $('#example').DataTable({
dom: 'fBtip',
buttons: [{
extend: 'searchPanes',
text: 'My Title'
},
{
extend: 'searchPanes',
config: {
text: 'Other Title'
}
}
]
});
});
Thanks in advance, and apologies if this is just me being blind.
This question has an accepted answers - jump to answer
Answers
See if this example helps.
Kevin
@kthorngren - yes, indeed! Thank you.
I would never have thought to go to the language option.
What I ended up with is a font-awesome filter icon