Skip to content

Feature: allow for attributeFilter customisation  #87

@ronimizy

Description

@ronimizy

hi, found your package very useful, but 'class' filter in MutationObserver is quite limiting. having a scenario when grid is formed dynamically with positioning via style attributes, so I am forced to hack my way around with "version" class that increments every position change :)

observer.observe(container, {
childList: true,
attributes: true,
subtree: true,
attributeFilter: ['class'],
});

attributeFilter customisation should be a simple addition of attributeFilter property to WrapGridArguments with default value of ['class'].

{
duration = 250,
stagger = 0,
easing = 'easeInOut',
onStart = () => { },
onEnd = () => { },
}: WrapGridArguments = {}

I would gladly contribute to implement this feature, if @aholachek OK this change

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions