Giter VIP home page Giter VIP logo

datatables-bulma's People

Contributors

emielmolenaar avatar jdilleen avatar nafplann avatar severinkaelin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

datatables-bulma's Issues

[FIX] Paging error on clicking ellipsis

When clicking on the ellipsis (even when it's disabled, it's a link), you receive the following error: DataTables warning: table id=DataTables_Table_0 - Unknown paging action: ellipsis.

This can be fixed by preventing ellipsis from being pased to the draw function by adding this filter a.data.action !== 'ellipsis'.

I wanted to issue a PR, but there are no build instructions on how to create the minimized JS file. Here is a working diff on the main JS.

diff --git a/js/dataTables.bulma.js b/js/dataTables.bulma.js
index 963c359..85ebbe9 100644
--- a/js/dataTables.bulma.js
+++ b/js/dataTables.bulma.js
@@ -31,7 +31,7 @@
       q = function(d, f) {
         var l, h, i, c, m = function(a) {
           a.preventDefault();
-          (!b(a.currentTarget).is("[disabled]") && !b(a.currentTarget).is("#table_ellipsis")) && o.page() != a.data.action && o.page(a.data.action).draw("page")
+          (!b(a.currentTarget).is("[disabled]") && !b(a.currentTarget).is("#table_ellipsis")) && (a.data.action !== 'ellipsis') && o.page() != a.data.action && o.page(a.data.action).draw("page")
         };
         l = 0;
         for (h = f.length; l < h; l++)

Icons with Fontawesome SVG + JS Framework

Someone already figured out how to show the icons when loading FA icons with their SVG + JS framework?

Followed the instructions here but didn't work so far.

I assume it may be related to the fact that the tables are being generated dynamically?

is-disabled Deprecated

The "is-disabled" CSS class has been deprecated in favor of the disabled HTML attribute per the Bulma docs. More info. Using dataTables.bulma.js allows the user to click on the ellipsis when available and there's nowhere for them to go, resulting in this error.

ellipsis_error

I believe the fix is to remove any appended "is-disabled" classes and add the disabled property where appropriate. My JS skills are severely lacking so I wasn't able to figure out how to do this myself.

Sorting Icons

When using dataTables.bulma.css there are two sets of sorting icons shown in the table header, one from Font Awesome and the other I'm guessing from DataTables. If I comment out lines 51, 55, and 59 the issue goes away.

sorting_icons

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.