ts-3156 / databar

jquery.databar - jQuery plugin for Excel-style data bar.
MIT License
10 stars 2 forks source link

re-draw option #3

Open ts-3156 opened 10 years ago

Alhaza commented 10 years ago

Sorry, I'm not very familiar with git, but I managed to do some form of redraw for your library, tested with datatables.js (http://datatables.net/) draw event.

FIrst, I added a class to the div wrapper at line 93:

      $(this).wrapInner($('<div class="databar-wrapper" />').css({

Then I added this block of code at line 80:

      var wrapper = $(this).find('div.databar-wrapper');
      if(wrapper){
        var text = wrapper.text();
        if(text){
          $(this).html(text);
        }
      }

Hope it helps!