How can I remove default button class of a dataTables button?

后端 未结 5 1230
名媛妹妹
名媛妹妹 2020-12-28 17:04

I am using Data table with Button. I want to show Success button rather default. I tried this Code

buttons: [
{
extend: \"excel\",
className: \"btn-sm btn-su         


        
5条回答
  •  感动是毒
    2020-12-28 17:40

    Use this code to hide Excel text on button:

     extend: 'excel',
    
     text: '',
    
     className: "btn btn-info btn-sm  glyphicon glyphicon-list-alt",
    

提交回复
热议问题