宝贝腿开大点我添添你视频男男,中文字幕熟女人妻av一区二区三区,爱色成人网,大地资源高清播放在线观看在线电影在线观看 ,777米奇影视第四色

集團(tuán)站切換校區(qū)

驗(yàn)證碼已發(fā)送,請(qǐng)查收短信

復(fù)制成功
微信號(hào):togogoi
添加微信好友, 詳細(xì)了解課程
已復(fù)制成功,如果自動(dòng)跳轉(zhuǎn)微信失敗,請(qǐng)前往微信添加好友
打開微信
圖標(biāo)

學(xué)習(xí)文章

當(dāng)前位置:首頁 > >學(xué)習(xí)文章 > >

{H5}混合開發(fā)之ionic組件上拉菜單

發(fā)布時(shí)間: 2017-11-08 09:32:03

?1.ComponentsIonic封裝了一系列components(組件),component可以讓你快速的為APP創(chuàng)建一個(gè)用戶界面。Ionic提供了很多組件,如modal,popup,card等。雖然組件主要是HTML+CSS組成,但部分組件也包含了JavaScript函數(shù)


2.Action sheetsAction Sheets從設(shè)備底部屏幕滑出,可以顯示一些選項(xiàng)如確定或取消。Action Sheets有時(shí)候被用來作為菜單,但不應(yīng)該被用來導(dǎo)航

Action Sheets經(jīng)常顯示在頁面其他組件的上面,并且必須在出沒其他內(nèi)容的時(shí)候消失。當(dāng)Action Sheets被觸發(fā)的時(shí)候,頁面其他內(nèi)容會(huì)變暗,使用戶聚焦于Action Sheets


3.用例<html>

<head>

   <meta charset="utf-8">

   <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">

   <title>ionic組件之上拉菜單</title>

   <link rel="stylesheet">

   <script src="https://cdn.bootcss.com/ionic/1.3.2/js/ionic.bundle.min.js"></script>

   <script type="text/javascript">

       angular.module('starter', ['ionic'])

               .run(function ($ionicPlatform) {

                   $ionicPlatform.ready(function () {

                       // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard

                       // for form inputs)

                       if (window.cordova && window.cordova.plugins.Keyboard) {

                           cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);

                       }

                       if (window.StatusBar) {

                           StatusBar.styleDefault();

                       }

                   });

               })

               .controller('actionsheetCtl', ['$scope', '$ionicActionSheet', '$timeout', function ($scope, $ionicActionSheet, $timeout) {

                   $scope.show = function () {

                       var hideSheet = $ionicActionSheet.show({

                           buttons: [

                               {text: '<b>Share</b> This'},

                               {text: 'Move'}

                           ],

                           destructiveText: 'Delete',

                           titleText: 'Modify your album',

                           cancelText: 'Cancel',

                           cancel: function () {

                               // add cancel code..

                           },

                           buttonClicked: function (index) {

                               return true;

                           }

                       });

                       $timeout(function () {

                           hideSheet();

                       }, 2000);

                   };

               }])

   </script>

</head>

<body ng-app="starter" ng-controller="actionsheetCtl">

<ion-pane>

   <ion-content>

       <h2 ng-click="show()">Action Sheet</h2>

   </ion-content>

</ion-pane>

</body>

</html>


4.運(yùn)行效果:


當(dāng)點(diǎn)擊action sheets文字之后彈出窗口

?

上一篇: {華為HCNA-RS}VLAN間路由

下一篇: {UI}設(shè)計(jì)-無序列表7個(gè)設(shè)計(jì)事項(xiàng) 引言

十九年老品牌
微信咨詢:gz_togogo 咨詢電話:18127429208 咨詢網(wǎng)站客服:在線客服

相關(guān)課程推薦

在線咨詢 ×

您好,請(qǐng)問有什么可以幫您?我們將竭誠提供最優(yōu)質(zhì)服務(wù)!