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

Make scoped slot mechanism a public API #34

Closed
justin-schroeder opened this issue Mar 13, 2020 · 0 comments · Fixed by #85
Closed

Make scoped slot mechanism a public API #34

justin-schroeder opened this issue Mar 13, 2020 · 0 comments · Fixed by #85
Labels
future Accepted and tracking for an upcoming release
Milestone

Comments

@justin-schroeder
Copy link
Member

Describe the new feature you'd like
Currently vue-formulate uses scoped slots internally, but this API is not public. It would be great to have an optionally public API (well documented) for using it.

<FormulateInput>
  <template #label="{ label }">
    <label>I want my own label code!</label>
  </template>
</FormulateInput>

So technically the above code works in 2.0.0 already, but its not fully fleshed out and does not have access to the entire context object, we should give each slot access to the same internal context object which holds all the information about the component.

What percentage of vue-formulate users would benefit?
I hope not more than 40% because while scoped slots are super powerful, they require a much more in-depth understanding fo the inner-workings of vue-formulate and the goal is for this to be super easy to use. But we do need to be able to handle more complex use cases.

@justin-schroeder justin-schroeder added documentation Improvements or additions to documentation feature request New feature or request labels Mar 13, 2020
@justin-schroeder justin-schroeder added this to 2.3.0 in Roadmap Mar 13, 2020
@justin-schroeder justin-schroeder added this to the 2.3.0 milestone Mar 16, 2020
@justin-schroeder justin-schroeder added future Accepted and tracking for an upcoming release and removed documentation Improvements or additions to documentation feature request New feature or request labels Mar 26, 2020
@justin-schroeder justin-schroeder linked a pull request May 16, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
future Accepted and tracking for an upcoming release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant