L
L
LeoDzhi2020-11-20 12:02:29
Vue.js
LeoDzhi, 2020-11-20 12:02:29

Vue js how to write directive to track screen sizes?

We need a vue js directive that will help keep track of the screen size. What it is for: on the desktop, the leftbar should always be present, while on the tablet it should be initially hidden (when you press the button, it will smoothly exit) There are no problems with smooth floating, but there is a screen adjustment. The function for this is not suitable (changing the screen size can be done by simply minimizing). If you have any ideas how it can be implemented in other ways, then tell me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima Pautov, 2020-11-20
@bootd

use better ready module. https://github.com/AlexandreBonaventure/vue-mq

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question