Skip to content

Allow table update on attribute changes in case of extending (overriding) TableNode #6410

@EugeneVorobyev

Description

@EugeneVorobyev

Hi,

I am trying to extend TableNode by overriding it with my CustomTableNode that will include some properties for the entire table. Based on that properties the class attribute will be changes (some classes added to the table element)

Everything works fine so far except TableObserver. It doesn't include attributes or attributeFilter options, so it doesn't react on any class changes on table element.

Would it be possible to add attributes into the options? I am not too familiar with details and may miss some caveats.

observer.observe(tableElement, {
childList: true,
subtree: true,
});

P.S. I've tried to enabled updateDOM in the CustomTableNode but it seems to break observer in some way, selection and some other stuff start to work flaky.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions