rweng / jquery-datatables-rails

jquery-datatables gem for rails
MIT License
564 stars 339 forks source link

When you guys apply jquery table with bootstrap 4? #207

Open nhanvd opened 8 years ago

nhanvd commented 8 years ago

So sorry because i don't know how to post my question to you guys, so i create an issue for this question.

I can apply the bootstrap 4 (css, js) for my new project via the gem: https://github.com/twbs/bootstrap-rubygem. And i saw your guys only support bootstrap 2 and 3. So when you guys can support us to apply jquery table with the bootstrap 4.

feelx commented 8 years ago

I made it work for my Rails 5 app with bootstrap 4 alpha 5.

The issue I had was that the install generator wouldn't change the right CSS application file (in the code, it's editing the file application.css when the bootstrap plugin needs application.scss). So I edited one of the source file myself in order for the jquery:datatables:install to modify application.scss and not application.css.

I don't know if you were having the same issue as what I just mentioned but it worked for me.

roooodcastro commented 8 years ago

According to this example, DataTables has a preview version of the integration with Bootstrap 4. This should be included in the gem packaging, along with versions 2 and 3. The README should also make clear that, as Bootstrap 4 is still in alpha, the integration will probably be buggy and prone to changes.

Nonetheless, I still think that if there is this option, and it is official, it should be in the gem.

For now it's possible to use the CDN link instead of using the gem's css.

fathiabdulrahim commented 7 years ago

https://github.com/mkhairi/jquery-datatables