Button "columnToggle" - show processing while working?

Button "columnToggle" - show processing while working?

abrookieabrookie Posts: 11Questions: 4Answers: 0

I'm using a button that extends "columnToggle" and when you click on the button (that will end up toggling the visibility on a set of 5 columns), it takes a few seconds for the columns to be shown/hide. Is there a way to put a spinner or processing message on the screen during that few second lag time? Like maybe a way to extend the action and make custom calls before and after the columnToggle action itself?

Answers

  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin

    Could you try using columnsToggle? It should perform better since it will only redraw the table once.

    Aside from that this plug-in might be useful to show a processing display.

    Allan

  • 2010020100 Posts: 6Questions: 1Answers: 0
    edited February 2018

    i will have the same question for a 'colvisRestore' button, i tried

    action: function ( e, dt, node, config ) {
    this.processing(true);
    $.fn.dataTable.ext.buttons.colvisRestore.action.call(this, e, dt, node, config);
    this.processing( false );
    }

    but can't see the process indicator

This discussion has been closed.