You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this way I can access $screen and $grid within any template in the app, which is functioning as expected:
<buttonv-show="$grid.lg">Button</button>
How can I access $grid and $screen with this global configuration from within the composition api? For example:
constinitHome=()=>{if($screen.touch){logic}};
Is it necessary to use a composable (as described in docs) alongside the plugin config to use this single config in the script of every component? Ideally I would like to just configure the plugin and have $screen and $grid available in the composition api.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Looking for some pointers for correct usage please.
I am using vue-screen as a plugin (as described in docs):
In this way I can access $screen and $grid within any template in the app, which is functioning as expected:
How can I access $grid and $screen with this global configuration from within the composition api? For example:
Is it necessary to use a composable (as described in docs) alongside the plugin config to use this single config in the script of every component? Ideally I would like to just configure the plugin and have $screen and $grid available in the composition api.
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions