I have a onsen-ui project and I'm using Monaca Cloud IDE to build it. I'm still struggling with a few key concepts when it comes to onsen-ui, but I can't figure it out from readying the docs.
At the moment I'm trying to implement a "range" input on a onsen carousel-item. The range input is rendered just fine, but I can't slide it. When I try to slide it, I actually scroll the carousel. My current idea to solve this problem is to set the entire carousel to "disabled", since it's not that important for the user to scroll back to the previous page (although that would be nice). One of my biggest issues is the action listeners and how to call methods pertaining to ons-.. components.
<ons-page>
<ons-carousel fullscreen swipeable auto-scroll auto-scroll-ratio ="0.2">
<ons-carousel-item>
<img class="custom_logo_top_welcome" src="images/Leaf_PNG.png"/>
<br />
<br />
<br />
<p class="custom_p_welcome">Start saving today and see the likely value when you retire.</p>
<div class="custom_bottom_div_welcome"><p class="custom_bottom_p_welcome">Swipe left</p></div>
</ons-carousel-item>
<ons-carousel-item >
<p class="custom_dateOfBirth_p_setup">Please enter your date of birth:</p>
<div class="custom_datePicker_div_setup"><p>Test Div</p></div>
<p class="custom_dateOfRetirement_p_setup">What is your expected retirement age?</p>
<input type="range" class="range custom_range_setup" />
<div class="custom_bottom_div_setup"><ons-button class="custom_bottom_button_setup" onclick = "navToIndex()">Done</ons-button></div>
</ons-carousel-item>
</ons-carousel>
</ons-page>
So basically what I'm thinking about doing here is to set the carousel to "disabled" when the user swipes to the second carousel item.
How do I do this? If there's a better way to solve the issue, please feel free to share.
Thanks in advance!