码迷,mamicode.com
首页 > 其他好文 > 详细

ionicPopup弹出列表选择对话框

时间:2016-03-10 14:43:56      阅读:1258      评论:0      收藏:0      [点我收藏+]

标签:


//显示
vm.selectWarehouse = function() {
vm.popupForWarehouse = $ionicPopup.show({
template: ‘<div class="list"> ‘+
‘ <ion-item ng-repeat="item in warehouselist" ng-click="vm.selectWarehouse1(item)" class="item item-icon-right"> ‘+
‘ <h2>{{item.name}}<h2> ‘+
‘ <i class="icon ion-ios-arrow-right" style="font-size: 15px"></i>‘+
‘ </ion-item> ‘+
‘</div> ‘,
title: ‘<b>Warehouse</b>‘,
scope: $scope
});
};
//关闭 
vm.popupForWarehouse.close();
<div class="list">
                <div class="item item-input-inset" style="background-color:#F5F5F5">
                    <label class="item item-input" style="width: 100%; background-color:#F5F5F5;">
                        <input type="text" ng-model="warehouseName" ng-click="vm.selectWarehouse()" readonly style="background-color:#F5F5F5; color:#8A8A8A;">
                        <i class="icon ion-ios-arrow-down icon-right placeholder-icon" style="margin-right: 10px"></i>
                    </label>
                </div>
 </div>        

 

ionicPopup弹出列表选择对话框

标签:

原文地址:http://www.cnblogs.com/fanhq/p/5261652.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!