How can i change my buttons color please help me :(
How can i change my buttons color please help me :(
dnepomuceno101
Posts: 31Questions: 4Answers: 0
var dStudALl = $('#deanstudundr').DataTable( {
responsive: true,});
new $.fn.dataTable.Buttons( dStudALl, {
buttons: [{
extend: 'pdfHtml5',
className: "btn-sm btn-primary btn-rounded",
text: 'PDF', },
{
extend: 'excelHtml5',
className: "btn-sm btn-primary btn-rounded",
text: 'EXCEL', },
{
extend: 'print',
className: "btn-sm btn-primary btn-rounded",
text: 'PRINT',
}
]
} );
dStudALl.buttons().container()
.appendTo( $(dStudALl.table().container() ) );
This discussion has been closed.
Answers
if you wanna define a primary class for all bottons use:
With the DOM u can define the class to all your buttons
ok
if you see the manual:
That means you can define you own class for the buttons, and then invoque the buttons that u will use, show me the full code
can u tell me wheres the css for this button it really hides my button idk why
can i change it in buttons.bootstrap4.js directly?
is better put all your Data Table CODE here to understand your problem
here it work if i put btn light but if i use btn-primary it default to secondary
I guess it will work:
it hides my button sir why?
there's really something wrong with my code
im using this
it hides my buttons
See if this threda or this thread helps.
Kevin
i read all the discussion here nothing helps me , do i need to remove some words in the .JS folder
$(".btn-primary").removeClass("btn-secondary");
where do i put this code maybe it will help me
well, first Use just ONE COMMENT to add yours answers, second, put the CODE in Text mode not print pics (use http://live.datatables.net/ or http://jsfiddle.net/user/dashboard/) is better to see the data, now is u cant see the buttons means u dont have bootstrap class added or something (i will need the text code)
sorry new here
Try
initComplete
. IF you still need help then as JuJoGuAl mentions please provide a test case so we can more efficiently help you.Kevin
thank you for replying sir's