Ons-carousel with ons-pull-hook
How do I make an ons-carousel with ons-pull-hook?
It is ons-carousel test with ons-pull-hook.. What is a ons-carousel with ons-pull-hook? How do you make a ons-carousel with ons-pull-hook? This script and codes were developed by Keiji Odagawa on 10 September 2022, Saturday.
Ons-carousel with ons-pull-hook - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>ons-carousel with ons-pull-hook</title> <link rel='stylesheet prefetch' href='https://unpkg.com/onsenui/css/onsenui.css'>
<link rel='stylesheet prefetch' href='https://unpkg.com/onsenui/css/onsen-css-components.css'>
</head>
<body> <ons-page ng-controller="MyController"> <ons-toolbar> <div class="center">Carousel</div> </ons-toolbar> <ons-carousel swipeable overscrollable auto-scroll fullscreen var="carousel"> <ons-carousel-item> <ons-page> <ons-pull-hook var="loader1" ng-action="load($done)"> <span ng-switch="loader1.state"> <span ng-switch-when="initial">Pull down to refresh</span> <span ng-switch-when="preaction">Release to refresh</span> <span ng-switch-when="action">Loading data. Please wait...</span> </span> </ons-pull-hook> <ons-list> <ons-list-item>1-1</ons-list-item> <ons-list-item>1-2</ons-list-item> <ons-list-item>1-3</ons-list-item> <ons-list-item>1-4</ons-list-item> <ons-list-item>1-5</ons-list-item> <ons-list-item>1-6</ons-list-item> <ons-list-item>1-7</ons-list-item> <ons-list-item>1-8</ons-list-item> <ons-list-item>1-9</ons-list-item> <ons-list-item>1-10</ons-list-item> <ons-list-item>1-11</ons-list-item> <ons-list-item>1-12</ons-list-item> <ons-list-item>1-13</ons-list-item> <ons-list-item>1-14</ons-list-item> <ons-list-item>1-15</ons-list-item> <ons-list-item>1-16</ons-list-item> <ons-list-item>1-17</ons-list-item> <ons-list-item>1-18</ons-list-item> <ons-list-item>1-19</ons-list-item> <ons-list-item>1-20</ons-list-item> <ons-list-item>1-21</ons-list-item> <ons-list-item>1-22</ons-list-item> <ons-list-item>1-23</ons-list-item> <ons-list-item>1-24</ons-list-item> <ons-list-item>1-25</ons-list-item> <ons-list-item>1-26</ons-list-item> <ons-list-item>1-27</ons-list-item> <ons-list-item>1-28</ons-list-item> <ons-list-item>1-29</ons-list-item> <ons-list-item>1-30</ons-list-item> </ons-list> </ons-page> </ons-carousel-item> <ons-carousel-item> <ons-page> <ons-pull-hook var="loader2" ng-action="load($done)"> <span ng-switch="loader2.state"> <span ng-switch-when="initial">Pull down to refresh</span> <span ng-switch-when="preaction">Release to refresh</span> <span ng-switch-when="action">Loading data. Please wait...</span> </span> </ons-pull-hook> <ons-list> <ons-list-item>2-1</ons-list-item> </ons-list> </ons-page> </ons-carousel-item> <ons-carousel-item> <ons-page> <ons-pull-hook var="loader3" ng-action="load($done)"> <span ng-switch="loader3.state"> <span ng-switch-when="initial">Pull down to refresh</span> <span ng-switch-when="preaction">Release to refresh</span> <span ng-switch-when="action">Loading data. Please wait...</span> </span> </ons-pull-hook> <ons-list> <ons-list-item>3-1</ons-list-item> </ons-list> </ons-page> </ons-carousel-item> </ons-carousel>
</ons-page> <script src='https://unpkg.com/onsenui/js/onsenui.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.5/angular.min.js'></script>
<script src='https://unpkg.com/onsenui/js/angular-onsenui.js'></script> <script src="js/index.js"></script>
</body>
</html>
Ons-carousel with ons-pull-hook - Script Codes JS Codes
var app = ons.bootstrap();
app.controller('MyController', function($scope, $timeout) { $scope.load = function($done) { $timeout(function() { $done(); }, 1000); };
});
ons.ready(function() { loader1.on("changestate", function(event) { switch (event.state) { case 'action': alert("action"); break; case 'initial': alert("initial"); break; case 'preaction': alert("preaction"); break; } });
});
Developer | Keiji Odagawa |
Username | keiji |
Uploaded | September 10, 2022 |
Rating | 3 |
Size | 2,072 Kb |
Views | 64,768 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Ng-include Test | 1,744 Kb |
Ons-lazy-repeat | 1,846 Kb |
Use ons-navigator on ons-tabbar. | 1,930 Kb |
Ons-splitter-content | 2,138 Kb |
Onsen UI | 1,843 Kb |
Ons-list with ons-ons-carousel | 2,245 Kb |
Ons-lazy-repeat | 1,905 Kb |
Ng-show | 1,629 Kb |
Ons-modal | 1,764 Kb |
Background-color of ons-page | 2,130 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
CSS3 Latte Art Logo | Esambino | 2,036 Kb |
Myprofile | SoufianeAbid | 2,451 Kb |
Static Image to Video Block | Grayghostvisuals | 4,864 Kb |
HTM5 picture dropzone | Jaysalvat | 2,576 Kb |
Portfolio Page | KaylaMT | 1,983 Kb |
SCSS Unit Conversion | Jakob-e | 8,210 Kb |
A Pen by Xand0r | Xand0r | 1,928 Kb |
Highbrow Basic HTML Lesson 8 | Kimlarocca | 2,094 Kb |
Formations | Cantelope | 5,731 Kb |
Transition | Shayhowe | 1,632 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!