0
我有一個滑塊框,並在我的控制,我把這個以防止滑動箱標籤滑動左,右:
$timeout(function() {
return $ionicSlideBoxDelegate.enableSlide(false);
}, 1);
它適用於Android,但不在IOS上。有什麼建議麼?
我有一個滑塊框,並在我的控制,我把這個以防止滑動箱標籤滑動左,右:
$timeout(function() {
return $ionicSlideBoxDelegate.enableSlide(false);
}, 1);
它適用於Android,但不在IOS上。有什麼建議麼?
我正在使用這一個滑動控制器的左或右圖像。
$ionicModal.fromTemplateUrl('image-modal.html', {
scope: $scope,
animation: 'slide-in-up'
}).then(function(modal) {
$scope.modal = modal;
});
$scope.openModal = function(galryPubId) {
$ionicSlideBoxDelegate.slide(galryPubId);
$scope.modal.show();
};
$scope.closeModal = function() {
$scope.modal.hide();
};
// Cleanup the modal when we're done with it!
$scope.$on('$destroy', function() {
$scope.modal.remove();
});
// Execute action on hide modal
$scope.$on('modal.hide', function() {
// Execute action
});
// Execute action on remove modal
$scope.$on('modal.removed', function() {
// Execute action
});
$scope.$on('modal.shown', function() {
console.log('Modal is shown!');
});
// Call this functions if you need to manually control the slides
$scope.next = function() {
$ionicSlideBoxDelegate.next();
};
$scope.previous = function() {
$ionicSlideBoxDelegate.previous();
};
$scope.goToSlide = function(index) {
$scope.modal.show();
$ionicSlideBoxDelegate.slide(index);
}
// Called each time the slide changes
$scope.slideChanged = function(index) {
$scope.slideIndex = index;
};
它適用於Android/iOS平臺。