mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(reorder): Allow sliding items to be reordered (#17568)
to allow item-sliding items to be reordered
This commit is contained in:
committed by
Liam DeBeasi
parent
c49276c477
commit
3b331b5216
@@ -67,7 +67,7 @@ export class ReorderGroup implements ComponentInterface {
|
||||
el: this.doc.body,
|
||||
queue: this.queue,
|
||||
gestureName: 'reorder',
|
||||
gesturePriority: 90,
|
||||
gesturePriority: 110,
|
||||
threshold: 0,
|
||||
direction: 'y',
|
||||
passive: false,
|
||||
|
||||
@@ -34,12 +34,22 @@
|
||||
<ion-reorder slot="end"></ion-reorder>
|
||||
</ion-item>
|
||||
|
||||
<ion-item button onclick="openAlert()">
|
||||
<ion-label>
|
||||
Item 2 (default ion-reorder)
|
||||
</ion-label>
|
||||
<ion-reorder slot="end"></ion-reorder>
|
||||
</ion-item>
|
||||
<ion-item-sliding>
|
||||
<ion-item button onclick="openAlert()">
|
||||
<ion-label>
|
||||
Item 2 (default ion-reorder with ion-item-sliding)
|
||||
</ion-label>
|
||||
<ion-reorder slot="end"></ion-reorder>
|
||||
</ion-item>
|
||||
<ion-item-options side="start">
|
||||
<ion-item-option>Favorite</ion-item-option>
|
||||
<ion-item-option color="danger">Share</ion-item-option>
|
||||
</ion-item-options>
|
||||
|
||||
<ion-item-options side="end">
|
||||
<ion-item-option>Unread</ion-item-option>
|
||||
</ion-item-options>
|
||||
</ion-item-sliding>
|
||||
|
||||
<ion-item button onclick="openAlert()">
|
||||
<ion-label>
|
||||
|
||||
Reference in New Issue
Block a user