LumaPictures / meteor-jquery-datatables

Sort, page, and filter millions of records reactively.
http://jquery-datatables.meteor.com
MIT License
98 stars 29 forks source link

bootstrap3 integrity #47

Open dohomi opened 10 years ago

dohomi commented 10 years ago

Hello,

I tried to use the bootstrap-3 plugin from the DataTables source, but the plugin html-structure is getting ignored. Not sure if this is an issue of this package but I would be curious if anyone got this running: http://datatables.net/examples/styling/bootstrap.html https://github.com/DataTables/Plugins/tree/master/integration/bootstrap/3 Would be great if this plugin would provide the inclusion automatically, I guess there are many people using Bootstrap 3 currently. Thanks

gjolund commented 10 years ago

Hi @dohomi

I took the approach that people would include bootstrap ( or any other css framework ) of their own accord through another package.

I haven't tried using the bootstrap plugin however, what are the advantages over just including bootstrap in a more direct fashion?

dohomi commented 10 years ago

@austinrivas with the bootstrap files included and including the options it works quite good, you can close this issue. Thanks

    return {
  (...)
        options: {
            sDom: "<'row'<'col-xs-6'l><'col-xs-6'f>r>" + "t" + "<'row'<'col-xs-6'i><'col-xs-6'p>>",
            "pagingType": "full_numbers",
            "oLanguage": {
                "sLengthMenu": "_MENU_",
                "sSearch": "",
                "sSearchPlaceholder": "Search",
                "oPaginate": {
                    "sPrevious": "<i class='fa fa-chevron-left'></i>",
                    "sNext": "<i class='fa fa-chevron-right'></i>"
                }
            },
        },
    };