vue-if-device
v1.0.6
Published
Show/hide nodes on mobile/desktop
Downloads
5
Readme
vue-if-device
vue-if-device is a simple vue plugin to show/hide node on mobile/desktop devices.
Install
npm install --save vue-if-device
Quick Start
import device from 'vue-if-device'
Vue.use(device)
Usage
Directives
- v-if-device.mobile
- v-if-device.desktop.
Functions
The plugin provides one function to use:
| Function | Arguments | Description |
| --- | --- | --- |
| $isMobile
| None | Check in relation to the configuartion if the device type is mobile. |
License
MIT - Created by Aleksey Zimin (@zimingit)