docs(reorder-group): update doReorder method (#18425)

* docs(reorder-group): update doReorder method

* chore: run docs build
This commit is contained in:
Marc
2019-06-03 16:11:19 -04:00
committed by Brandy Carney
parent 3a4f475889
commit be8dd55c21
2 changed files with 8 additions and 8 deletions

View File

@ -99,7 +99,7 @@ export class ReorderGroupExample {
constructor() {} constructor() {}
doReorder(ev: any) => { doReorder(ev: any) {
// The `from` and `to` properties contain the index of the item // The `from` and `to` properties contain the index of the item
// when the drag started and ended, respectively // when the drag started and ended, respectively
console.log('Dragged from index', ev.detail.from, 'to', ev.detail.to); 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 // where the gesture ended. This method can also be called directly
// by the reorder group // by the reorder group
ev.detail.complete(); ev.detail.complete();
}); }
toggleReorderGroup() { toggleReorderGroup() {
this.reorderGroup.disabled = !this.reorderGroup.disabled; this.reorderGroup.disabled = !this.reorderGroup.disabled;
@ -134,7 +134,7 @@ export class ReorderGroupExample {
constructor() {} constructor() {}
doReorder(ev: any) => { doReorder(ev: any) {
// Before complete is called with the items they will remain in the // Before complete is called with the items they will remain in the
// order before the drag // order before the drag
console.log('Before complete', this.items); 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 // After complete is called the items will be in the new order
console.log('After complete', this.items); console.log('After complete', this.items);
}); }
} }
``` ```

View File

@ -83,7 +83,7 @@ export class ReorderGroupExample {
constructor() {} constructor() {}
doReorder(ev: any) => { doReorder(ev: any) {
// The `from` and `to` properties contain the index of the item // The `from` and `to` properties contain the index of the item
// when the drag started and ended, respectively // when the drag started and ended, respectively
console.log('Dragged from index', ev.detail.from, 'to', ev.detail.to); 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 // where the gesture ended. This method can also be called directly
// by the reorder group // by the reorder group
ev.detail.complete(); ev.detail.complete();
}); }
toggleReorderGroup() { toggleReorderGroup() {
this.reorderGroup.disabled = !this.reorderGroup.disabled; this.reorderGroup.disabled = !this.reorderGroup.disabled;
@ -118,7 +118,7 @@ export class ReorderGroupExample {
constructor() {} constructor() {}
doReorder(ev: any) => { doReorder(ev: any) {
// Before complete is called with the items they will remain in the // Before complete is called with the items they will remain in the
// order before the drag // order before the drag
console.log('Before complete', this.items); 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 // After complete is called the items will be in the new order
console.log('After complete', this.items); console.log('After complete', this.items);
}); }
} }
``` ```