Display fields and columns conditionally

Display fields and columns conditionally

hbanaharishbanaharis Posts: 32Questions: 14Answers: 3

I'm able to control the display of editing buttons and inline editing by an if statement, eg

if (permission === 'admin') {
    $('#mydataTable').on( 'click', 'tbody td:not(.child)', function (e) {
        if ( $(this).hasClass( 'control' ) || $(this).hasClass('select-checkbox') ) {
            return;
        }
        editor.inline( this, {onBlur: 'submit'} );
            } );  };

But how can I conditionally display the fields in editor and columns in datatable?

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.