3
我在這裏面臨真正的挑戰:) 將動畫添加到ng-swipe操作, 我有我要交換的行,我希望它向左滑動或向右滑動那麼新的 行將出現,而不是 目前它正在顯示像開/關開關它只是消失。AngularJs將動畫添加到ng-swipe
我需要創建指令嗎?我可以只用css嗎? 你可以幫助一個例子 我在網上搜索,沒有發現任何有用的東西。 謝謝
div.add-to-favorite-open(ng-show="showActions && item.is_favorite==false",ng-swipe-left="showActions = false",data-ng-click='add_pro_to_favorite(item); showActions=!showActions')
div.add-to-favorite-image
p.add-to-favorite-text Add to Favs
div.remove-from-favorite-open(ng-show="showActions && item.is_favorite==true",ng-swipe-left="showActions = false",data-ng-click='remove_from_favorite(item); showActions=!showActions')
div.add-to-favorite-image
p.add-to-favorite-text Remove from Favs
div.contact-slide(ng-show="!showActions",ng-swipe-left="showActions = true")
您是否找到了解決方案?我也需要解決方案。 –
抱歉,我沒有找到解決方案。 –