How to add a condition inside the breakpoint #7093
Unanswered
AndriaSalah
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Am a fairly new developer and i have trying to add a condition inside of a breakpoint
like this
breakpoints={{ 340: { slidesPerView: Shown? 1:2 } }}
but what happens is that when the condition shown is false it doesnt show 2 , it shows the default value which is 5
here is the code
what am trying to do is when a desktop user is using the website it should show them 4 slides when the condition shown is true and
and when it's false it should show 5 and when a mobile user is using it it should show 1 slide when the condition shown is true and 2 when it's false
thanks
Beta Was this translation helpful? Give feedback.
All reactions