UNPKG

@progress/kendo-vue-listbox

Version:
39 lines (38 loc) 1.98 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ /** * Process the data collection/s based on the clicked ListBoxToolbar tool. * * @param {T[]} listBoxOneData - The first data collection. * @param {T[]} listBoxTwoData - The second data collection. Pass an empty array if there is only one ListBox. * @param {string} toolName - The tool that was clicked. * @param {string} selectedField - The field that contains the selected information in the data object. * @returns {{listBoxOneData: T[], listBoxTwoData: t[]}} - The object that contains the new data collections. */ export declare const processListBoxData: (listBoxOneData: Array<any>, listBoxTwoData: Array<any>, toolName: string, selectedField: string) => { listBoxOneData: any[]; listBoxTwoData: any[]; }; /** * @hidden */ export declare const moveItem: (from: number, to: number, data: Array<any>) => any[]; /** * Process the data collection/s based on the dragged and drop item. * * @param {T[]} listBoxOneData - The first data collection. * @param {T[]} listBoxTwoData - The second data collection. Pass an empty array if there is only one ListBox. * @param {any} dragItem - The item that was dragged. * @param {any} dropItem - The drop target item. * @param {string} valueField - The field which points to the unique value of each data item. * @returns {{listBoxOneData: T[], listBoxTwoData: t[]}} - The object that contains the new data collections. */ export declare const processListBoxDragAndDrop: (listBoxOneData: Array<any>, listBoxTwoData: Array<any>, dragItem: any, dropItem: any, valueField: string) => { listBoxOneData: any[]; listBoxTwoData: any[]; };