From be8dd55c2179a1743ddbda56b5e88a1a89c92bcc Mon Sep 17 00:00:00 2001 From: Marc Date: Mon, 3 Jun 2019 16:11:19 -0400 Subject: [PATCH] docs(reorder-group): update doReorder method (#18425) * docs(reorder-group): update doReorder method * chore: run docs build --- core/src/components/reorder-group/readme.md | 8 ++++---- core/src/components/reorder-group/usage/angular.md | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/core/src/components/reorder-group/readme.md b/core/src/components/reorder-group/readme.md index 256d617af7..e32e67ef32 100644 --- a/core/src/components/reorder-group/readme.md +++ b/core/src/components/reorder-group/readme.md @@ -99,7 +99,7 @@ export class ReorderGroupExample { constructor() {} - doReorder(ev: any) => { + doReorder(ev: any) { // The `from` and `to` properties contain the index of the item // when the drag started and ended, respectively console.log('Dragged from index', ev.detail.from, 'to', ev.detail.to); @@ -108,7 +108,7 @@ export class ReorderGroupExample { // where the gesture ended. This method can also be called directly // by the reorder group ev.detail.complete(); - }); + } toggleReorderGroup() { this.reorderGroup.disabled = !this.reorderGroup.disabled; @@ -134,7 +134,7 @@ export class ReorderGroupExample { constructor() {} - doReorder(ev: any) => { + doReorder(ev: any) { // Before complete is called with the items they will remain in the // order before the drag console.log('Before complete', this.items); @@ -146,7 +146,7 @@ export class ReorderGroupExample { // After complete is called the items will be in the new order console.log('After complete', this.items); - }); + } } ``` diff --git a/core/src/components/reorder-group/usage/angular.md b/core/src/components/reorder-group/usage/angular.md index de82bd6576..4ba9ceb6be 100644 --- a/core/src/components/reorder-group/usage/angular.md +++ b/core/src/components/reorder-group/usage/angular.md @@ -83,7 +83,7 @@ export class ReorderGroupExample { constructor() {} - doReorder(ev: any) => { + doReorder(ev: any) { // The `from` and `to` properties contain the index of the item // when the drag started and ended, respectively console.log('Dragged from index', ev.detail.from, 'to', ev.detail.to); @@ -92,7 +92,7 @@ export class ReorderGroupExample { // where the gesture ended. This method can also be called directly // by the reorder group ev.detail.complete(); - }); + } toggleReorderGroup() { this.reorderGroup.disabled = !this.reorderGroup.disabled; @@ -118,7 +118,7 @@ export class ReorderGroupExample { constructor() {} - doReorder(ev: any) => { + doReorder(ev: any) { // Before complete is called with the items they will remain in the // order before the drag console.log('Before complete', this.items); @@ -130,6 +130,6 @@ export class ReorderGroupExample { // After complete is called the items will be in the new order console.log('After complete', this.items); - }); + } } ```