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

Add support for multiple namespace in Views #724

Open
xavierfoucrier opened this issue Nov 17, 2023 · 0 comments
Open

Add support for multiple namespace in Views #724

xavierfoucrier opened this issue Nov 17, 2023 · 0 comments
Labels
@barba/core @barba/core plugin feature feature request to implement

Comments

@xavierfoucrier
Copy link
Member

The current syntax for View doesn't support more that a single namespace.

It would be nice to allow multiple namespaces in order to simplify code that run for a specific slot of Views, like:

barba.init({
  views: [{
    namespace: [
      'index',
      'contact'
    ],
    beforeLeave(data) {
      // do something before leaving `index` or `contact` namespaces
    }
  }]
});
@xavierfoucrier xavierfoucrier added @barba/core @barba/core plugin feature feature request to implement labels Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@barba/core @barba/core plugin feature feature request to implement
Projects
None yet
Development

No branches or pull requests

1 participant