Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: allow for attributeFilter customisation #87

Open
ronimizy opened this issue Nov 1, 2024 · 0 comments
Open

Feature: allow for attributeFilter customisation #87

ronimizy opened this issue Nov 1, 2024 · 0 comments

Comments

@ronimizy
Copy link

ronimizy commented Nov 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant