Quantcast
Channel: Editor — DataTables forums
Viewing all articles
Browse latest Browse all 3744

editor.displaynode() vs editor.template() when modifying HTML

$
0
0

Which is preferred?

editor.on('open', function(){
    const editor = this;
    const displayNode$ = $(editor.displayNode());
    displayNode
        .find('#formErrors')
        .empty();
});

VS

editor.on('open', function () {
    const editor = this;
    editor
        .template()
        .find('#formErrors')
        .empty()
});

Viewing all articles
Browse latest Browse all 3744