Webix 8 - Extending Existing Content Element

Hi.

Trying to switch to Webix 8.0 and some code has seemingly stopped working.

webix.ui.datafilter.totalCountedDDL = webix.extend({
    refresh: function (master, node, value) {
        var result = 0;
        master.data.each(function (obj) {
            var column = value.columnId;
            if (obj && obj[column]) {
                result++;
            }
        });
        console.log(this)
        node.firstChild.innerHTML = result + ' / ' + master.data.count() + $.i18n._(' items are loaded.');
    }
}, webix.ui.datafilter.summColumn);

This seems to have stopped working and my footer appears to show a simple whitespace in the place to the original text.
Followed instructions in documentation, which haven't changed (in case of Webix internal logic change).
Is there a way to fix this?

Best regards

Comments

  • @Valzebnik
    try to use node.innerHTML instead of node.firstChild.innerHTML

  • That worked. Amazing. Thank you very much.

  • edited October 15

    Followed instructions in documentation, which haven't changed (in case of Webix internal logic change)

    Thank you for pointing it out. We have mentioned the change in the Migration guide, but not in the main documentation. We will fix this shortly.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!