-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Description
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 :)
Lines 332 to 337 in 599ee43
| 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'].
Lines 100 to 106 in 599ee43
| { | |
| 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
Labels
No labels