This tutorial will show you the basics of how to get started with the jQWidgets Sortable React Component.
Refer to Getting Started with React before you start with this help topic.
I. Imports:
import * as React from 'react'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';import 'jqwidgets-scripts/jqwidgets/styles/jqx.material-purple.css';import JqxSortable, { ISortableProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxsortable';
II. Class:
III. Render:
The event names in React are constructed of the original event names starting with capital letter plus on upfront:
This is how you call methods & props:
Every component have a method setOptions which accepts a object as an argument. This object contains component settings.
Every component also have a method getOptions which returns the value of the requested option.
API Reference of the jQWidgets Sortable React Component: Sortable API
Demos Reference of the jQwidgets Sortable React Component: Sortable Demos