drewjbartlett / vue-simple-breakpoints Goto Github PK
View Code? Open in Web Editor NEWA wrapper for simple-breakpoints for Vue.js
A wrapper for simple-breakpoints for Vue.js
First off thanks for the plugin!
I'm trying to use this to conditionally set an image src and while it works great on refresh it's not swapping the src when the window is resized. Is this by design? I would love to be able to use the functions within a computed value for dynamic component and attribute swapping.
Thanks!!
Hi,
maybe you can help me.
I want to know when the simple-breakpoints change. I can know my breakpoints when it's mounted in Vue.js (like in the doc, work perfecly), but I cannot know when the breackpoint change.
I try the Updated lifecycle event with this.$breakpoints.isMobile(), but it's not working.
Try to move reduce the size of the browser window, updated () is not called.
I'am not sure how to do it. Do you have any idea ?
Thanks for the help ! :-)
Updated :
I found how :
beforeMount () {
console.log(this.$breakpoints.currentBreakpoint());
},
beforeUpdate () {
console.log(this.$breakpoints.currentBreakpoint());
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.