[Feature Request] Dynamic Defaults/Overrides Providers
Open
@KaelWD is already working on this.
Since Aug 21, 2023.
E: defaults
framework
T: enhancement
- Dominant language
- TypeScript
- Stars
- 41k
- Forks
- 7.1k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 11
Description
Problem to solve
Currently, it is only possible to provide static default overrides when using v-defaults-provider
Proposed solution
Allow to receive a factory of defaults as a possible input.
That could provide a callback that receives context about the object being injected and something useful surroundieg context as well.
For instance, every button that has a href will also prepend an icon by default.
A new component v-overrides-provider could also be created, allowing, for instance, to check all input labels if there is a valid i18n language entry and replacing it if applicable.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.