@progress/kendo-angular-layout
Version:
Kendo UI for Angular Layout Package - a collection of components to create professional application layoyts
43 lines (42 loc) • 2 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { PreventableEvent } from '@progress/kendo-angular-common';
/**
* Arguments for the `reorder` event. The event fires when the order or starting
* positions of the items is changed via the UI. If you prevent the event, the change is canceled ([see example]({% slug reordering_tilelayout %}#toc-handling-the-reorder-event)).
*/
export class TileLayoutReorderEvent extends PreventableEvent {
item;
items;
newIndex;
oldIndex;
newCol;
oldCol;
newRow;
oldRow;
/**
* Constructs the event arguments for the `reorder` event.
* @param item - The TileLayoutItem being reordered.
* @param items - The TileLayoutItem collection that holds the currently rendered items and their internal state.
* @param newIndex - The new order index of the reordered item used to determine its positioning relative to the other items.
* @param oldIndex - The initial order index of the reordered item used to determine its positioning relative to the other items.
* @param newCol - The new start column of the reordered item.
* @param oldCol - The initial start column of the reordered item.
* @param newRow - The new start row of the reordered item.
* @param oldRow - The initial start row of the reordered item.
* @hidden
*/
constructor(item, items, newIndex, oldIndex, newCol, oldCol, newRow, oldRow) {
super();
this.item = item;
this.items = items;
this.newIndex = newIndex;
this.oldIndex = oldIndex;
this.newCol = newCol;
this.oldCol = oldCol;
this.newRow = newRow;
this.oldRow = oldRow;
}
}