{"id":6107,"date":"2017-02-10T16:59:05","date_gmt":"2017-02-10T13:59:05","guid":{"rendered":"https:\/\/www.karadere.com\/blog\/?p=6107"},"modified":"2017-02-10T17:04:27","modified_gmt":"2017-02-10T14:04:27","slug":"openui5-carousel-javascript-ornegi","status":"publish","type":"post","link":"https:\/\/www.karadere.com\/blog\/openui5-carousel-javascript-ornegi.html","title":{"rendered":"Openui5 Carousel javascript \u00f6rne\u011fi"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/openui5nightly.hana.ondemand.com\/resources\/sap\/ui\/demokit\/themes\/base\/images\/OpenUI5_new_small_size.png\" width=\"370\" height=\"96\" \/><\/p>\n<p>&lt;!DOCTYPE HTML&gt;<br \/>\n&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;meta http-equiv=&#8221;X-UA-Compatible&#8221; content=&#8221;IE=edge&#8221; \/&gt;<br \/>\n&lt;meta http-equiv=&#8217;Content-Type&#8217; content=&#8217;text\/html;charset=UTF-8&#8217;\/&gt;<\/p>\n<p>&lt;title&gt;Carousel&lt;\/title&gt;<\/p>\n<p>&lt;script src=&#8221;https:\/\/sapui5.hana.ondemand.com\/resources\/sap-ui-core.js&#8221;<br \/>\nid=&#8221;sap-ui-bootstrap&#8221;<br \/>\ndata-sap-ui-libs=&#8221;sap.m&#8221;<\/p>\n<p>data-sap-ui-theme=&#8221;sap_belize&#8221;&gt;&lt;\/script&gt;<\/p>\n<p>&lt;script type=&#8221;text\/javascript&#8221;&gt;<\/p>\n<p>var appCarousel = new sap.m.App(&#8220;myApp&#8221;, {initialPage:&#8221;carouselPage&#8221;});<\/p>\n<p>var carouselPage = new sap.m.Page(&#8220;carouselPage&#8221;,<br \/>\n{title: &#8220;Carousel&#8221;,<br \/>\nenableScrolling: false }<br \/>\n);<\/p>\n<p>var page1 = new sap.m.Page(&#8220;page1&#8221;,<br \/>\n{title: &#8220;Carousel Test Page 1&#8221;,<br \/>\nenableScrolling: false }<br \/>\n);<\/p>\n<p>var page2 = new sap.m.Page(&#8220;page2&#8221;,<br \/>\n{title: &#8220;Carousel Test Page 2&#8221;,<br \/>\nenableScrolling: false }<br \/>\n);<\/p>\n<p>var carousel = new sap.m.Carousel(&#8220;myCarousel&#8221;, {<\/p>\n<p>activePage: page1,<br \/>\nloop: true,<\/p>\n<p>pages: [page1, page2]<br \/>\n});<\/p>\n<p>\/\/Listen to &#8216;pageChanged&#8217; events<br \/>\ncarousel.attachPageChanged(function(oControlEvent) {<br \/>\nconsole.log(1);<br \/>\nconsole.log( &#8220;sap.m.Carousel: page changed: old: &#8221; + oControlEvent.getParameters().oldActivePageId );<br \/>\nconsole.log(&#8221; new: &#8221; + oControlEvent.getParameters().newActivePageId );<br \/>\n});<\/p>\n<p>carouselPage.addContent(carousel);<br \/>\nappCarousel.addPage(carouselPage);<br \/>\nappCarousel.placeAt(&#8220;content&#8221;);<\/p>\n<p>sap.ui.getCore().applyChanges();<\/p>\n<p>&lt;\/script&gt;<\/p>\n<p>&lt;\/head&gt;<br \/>\n&lt;body class=&#8221;sapUiBody&#8221;&gt;<br \/>\n&lt;div id=&#8221;content&#8221;&gt;&lt;\/div&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/p>\n<p>&nbsp;<\/p>\n<div class=\"post-embed\"><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" src=\"http:\/\/jsbin.com\/yeyafewevu\/embed?html,output#?secret=H6VhJ7U4Dh\" data-secret=\"H6VhJ7U4Dh\" width=\"1165\" height=\"1000\" ><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>&lt;!DOCTYPE HTML&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv=&#8221;X-UA-Compatible&#8221; content=&#8221;IE=edge&#8221; \/&gt; &lt;meta http-equiv=&#8217;Content-Type&#8217; content=&#8217;text\/html;charset=UTF-8&#8217;\/&gt; &lt;title&gt;Carousel&lt;\/title&gt; &lt;script src=&#8221;https:\/\/sapui5.hana.ondemand.com\/resources\/sap-ui-core.js&#8221; id=&#8221;sap-ui-bootstrap&#8221; data-sap-ui-libs=&#8221;sap.m&#8221; data-sap-ui-theme=&#8221;sap_belize&#8221;&gt;&lt;\/script&gt; &lt;script type=&#8221;text\/javascript&#8221;&gt; var appCarousel = new sap.m.App(&#8220;myApp&#8221;, {initialPage:&#8221;carouselPage&#8221;}); var carouselPage = new sap.m.Page(&#8220;carouselPage&#8221;, {title: &#8220;Carousel&#8221;, enableScrolling: false } ); var page1 = new sap.m.Page(&#8220;page1&#8221;, {title: &#8220;Carousel Test Page 1&#8221;, enableScrolling: false } ); var page2 = new sap.m.Page(&#8220;page2&#8221;, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[2806,2808],"tags":[2704,1241,2479,1613,1837,2546],"class_list":["post-6107","post","type-post","status-publish","format-standard","hentry","category-openui5","category-sap-openui5","tag-carousel","tag-javascript","tag-openui5","tag-ornegi","tag-sap","tag-sapui5","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"aioseo_notices":[],"views":1103,"_links":{"self":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/6107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/comments?post=6107"}],"version-history":[{"count":2,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/6107\/revisions"}],"predecessor-version":[{"id":6109,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/6107\/revisions\/6109"}],"wp:attachment":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/media?parent=6107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/categories?post=6107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/tags?post=6107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}