Components - default settings
See original GitHub issueIs your feature request related to a problem? Please describe.
Most of my apps made by Quasar are targeted to touch devices.
If you use q-tooltip
it has a default tooltip position below the object. It is problematic on touch devices as it appears under your finger and tooltip is not visible.
You can easily define new position <q-tooltip anchor="top middle" self="center middle">Mark as favorite</q-tooltip>
but you have to do it for each component.
Describe the solution you’d like
Would be nice to configure a default settings for some components not only q-tooltip
. Other components for default settings could be q-btn
or q-input
.
I think it could work in the same way as it is now for e.g. q-notify
setDefaults
Settings defaults.
Describe alternatives you’ve considered I can always wrap Quasar component into my own and pass default properties.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:8
- Comments:9 (2 by maintainers)
Top GitHub Comments
Here is a slightly different variant of @pdanpdan’s approach, with some really basic TypeScript sprinkled on top:
I would go with something like this (to prevent having to fill everything in the prop):