Getting started with the KendoReact Sortable
The Sortable provides a sortable drag-and-drop functionality to elements within a list.
The KendoReact Sortable component is part of the KendoReact library of React UI components. It is distributed through NPM under the kendo-react-sortable package.
Basic Usage
The following example demonstrates the Sortable in action.
Functionality and Features
Installation
Download and install the package. Use Node.js v5.0.0 or later.
npm install --save @progress/kendo-react-sortable @progress/kendo-licensing
Once installed, import the package module.
// ES2015 module syntax import { Sortable } from '@progress/kendo-react-sortable';
// CommonJS format const { Sortable } = require('@progress/kendo-react-sortable');
You are required to install one of the KendoReact themes to style your components. For more information on how to add the styles, refer to the article on getting started.
Follow the instructions on the KendoReact My License page to activate your license. You can skip this step if your application already contains a KendoReact license file.
Dependencies
The Sortable package requires the following peer dependencies that have to be installed by your application:
- react
- react-dom
- @progress/kendo-licensing
Events
The following example demonstrates basic Sortable events.