Comments (4)
Hello @vgahlaut, thanks for reporting this issue.
Are you trying to have multiple reorder groups? The documentation examples show a single reorder group, which is compatible with a dynamic list of items: https://stackblitz.com/edit/ionic-ng-menu-layout-j1sdm3?file=src%2Fapp%2Fapp.component.html,src%2Fapp%2Fapp.component.ts
from ionic-framework.
I tried with following 2 ways to put for loop. First one will create multiple reorder group as it is inside loop. But second method should have only 1 reorder group. Both has same issue
First method:
<ion-app> <ion-list *ngFor="let myitem of mylist"> <ion-reorder-group [disabled]="false" (ionItemReorder)="handleReorder($any($event))" > <ion-item> <ion-label> {{ myitem }} </ion-label> <ion-reorder slot="end"></ion-reorder> </ion-item> </ion-reorder-group> </ion-list> </ion-app>
Second Method:
<ion-app> <ion-list> <ion-reorder-group [disabled]="false" (ionItemReorder)="handleReorder($any($event))" *ngFor="let myitem of mylist" > <ion-item> <ion-label> {{ myitem }} </ion-label> <ion-reorder slot="end"></ion-reorder> </ion-item> </ion-reorder-group> </ion-list> </ion-app>
Where should I put the loop to get it working ?
from ionic-framework.
@vgahlaut both those code snippets shared will create multiple reorder groups, one for each index of the array.
The recommend approach is to follow the example shown in the comment above: #28909 (comment)
from ionic-framework.
Ohh. Ok. Thank you so much. Please close it. My mistake for the implementation
from ionic-framework.
Related Issues (20)
- bug: (Angular 17.2) Model Inputs break modal and popover controllers. HOT 6
- bug: ion-item slot end is shifted to the left HOT 5
- bug: item-sliding removes its border when there is an item in the list after it in an inset list
- bug: Refresher Content's icon on IOS won't show up properly unless the refresh's processing
- bug: datetime should clamp within the min/max when the min or max changes HOT 1
- bug: ion-item with ion-input firing 2 click events on iPhoneX HOT 1
- bug: IonModal focus trap does not allow other components to overlay HOT 2
- feat: localization calendar (`ion-datetime`) HOT 1
- bug: test
- feat: test
- feat: Ability to reorder horizontally in `ion-reorder ` HOT 3
- Ionic 7 Angular Standalone Component (Sidebar Menu Toggle not working in android device) HOT 2
- bug: IonInput has no placeholder text when type="time" HOT 4
- bug: Alert button handlers are executed outside the angular zone in certain cases HOT 3
- bug: input blurring utility causes non input and textarea elements to be blurred HOT 3
- bug: IonAert button get empty value from input HOT 3
- bug: ion-textarea Text Selection Not Persisting on Safari HOT 4
- bug: ion-toggle focus-visible doesnt work HOT 4
- IOS 17.4 will stop supporting PWA for Europe HOT 1
- feat: Webhook test - ignore HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ionic-framework.