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

Idea: Support for some form of "portal-slots" #37

Closed
LinusBorg opened this issue May 16, 2017 · 1 comment
Closed

Idea: Support for some form of "portal-slots" #37

LinusBorg opened this issue May 16, 2017 · 1 comment

Comments

@LinusBorg
Copy link
Owner

LinusBorg commented May 16, 2017

<portal to="destination>
  <div slot="header">
    this should go to the header slot
  </div>
</portal>

<portal to="destination>
  <div slot="footer">
    This should go tto the footer slot
  </div>
</portal>

<portal-target :slots=['header', 'default', 'footer']/>

This is similar to #26 but I think both APIs would serve different purposes. While #26 would enable an arbitrary number of portals to send to one portal-target with some position prop (to ensure order), The suggestion above would enable declaratively "sorting" a finite number of inputs by leveraging the normal slot functionality.

This features could also be combined I think - in the wormhole, we save all incoming seperated by slot and then position.

@LinusBorg LinusBorg changed the title Idea: Support for slots Idea: Support for some fortm of "portal-slots" May 17, 2017
@LinusBorg LinusBorg changed the title Idea: Support for some fortm of "portal-slots" Idea: Support for some form of "portal-slots" May 17, 2017
@LinusBorg LinusBorg added this to v1.2 in Roadmap Jun 8, 2017
@LinusBorg LinusBorg added this to the 1.2.0 milestone Jun 17, 2017
@LinusBorg
Copy link
Owner Author

This will not be a separate feature but will be achievable ina way with the upcoming PortalTargetGroup

@LinusBorg LinusBorg removed this from v1.2 in Roadmap Sep 22, 2017
@LinusBorg LinusBorg removed this from the 1.2.0 milestone Sep 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant