I was getting errors... #648
Unanswered
jdarling74
asked this question in
Q&A
Replies: 1 comment
-
Credit goes to a coworker. At the top, i had to declare "Breakpoints".
and then add Breakpoints to the module, I'm still getting used to the idea of JS as a thing that can reference modules
and then finally write out the statement that would do what I need
|
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I'm working on updating the JS of a carousel component in AEM. You can set it to display more than 1 item at a time with a menu called PerView. There is also a value called "peek" that will display more of the images in the carousel on the edges (depending on the value)... my new line of code should be doing this:
// if perview is greater than 1, and breakpoint is 575, then set perview back to 1 and set peek to 100
Currently, nothing is happening with this first attempt
then i tried
this.breakpoints = (perView =< 1) ? {} : { 575: { perView: 1, peek: 100 } };
which throws build errors. any help would be welcome.
Beta Was this translation helpful? Give feedback.
All reactions