DataTables TableTools images not working with ThemeRoller

梦想与她 提交于 2019-12-25 03:25:03

问题


I have tabletools up and running with datatables and it works great. The only problem I am having is icons for the tabletools buttons. When they are outside the header div using "sDom": 'T<"clear"><"H"lf>rt<"F"ip>' the icons show up just fine, when I put the tabletools inside the header, the icons dont show up "sDom": '<"H"lTf>rt<"F"ip>'

The image illustrates both combined "sDom": 'T<"clear"><"H"lTf>rt<"F"ip>'


回答1:


I have the same problem when i use "bJQueryUI": true, i may think there is a problem with the jqueryUI if there is not a problem you can use collection instead for example:

"oTableTools": { "aButtons": [{"sExtends":    "collection","sButtonText": "Save", "aButtons":    [ "csv", "xls", "pdf" ]},]

It will show the icons in a list



来源:https://stackoverflow.com/questions/8751126/datatables-tabletools-images-not-working-with-themeroller

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!