Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Feature Request] Dynamic Defaults/Overrides Providers #17192

Open
SkyaTura opened this issue Apr 20, 2023 · 0 comments
Open

[Feature Request] Dynamic Defaults/Overrides Providers #17192

SkyaTura opened this issue Apr 20, 2023 · 0 comments
Assignees
Labels
E: defaults Defaults composable framework Issues and Feature Requests that have needs framework-wide. T: enhancement Functionality that enhances existing features

Comments

@SkyaTura
Copy link
Contributor

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.

@KaelWD KaelWD added T: enhancement Functionality that enhances existing features framework Issues and Feature Requests that have needs framework-wide. E: defaults Defaults composable labels May 2, 2023
@github-actions github-actions bot removed the S: triage label May 2, 2023
@KaelWD KaelWD added this to the v3.x.x milestone May 2, 2023
@johnleider johnleider modified the milestones: v3.x.x, v4.0.0 (Goliath) Jan 30, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
E: defaults Defaults composable framework Issues and Feature Requests that have needs framework-wide. T: enhancement Functionality that enhances existing features
Projects
None yet
Development

No branches or pull requests

3 participants