| Name | Type | Default |
|---|---|---|
| disabled | boolean | false |
|
Sets or gets whether the range selector is disabled. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
disabled={true}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| groupLabelsFormatFunction | (value: RangeSelectorGroupLabelsFormatFunction['value'], date: RangeSelectorGroupLabelsFormatFunction['date']) => string | null |
|
Interface RangeSelectorGroupLabelsFormatFunction {
value?: string; date?: object; } A custom callback function for rendering the major labels. Has two arguments - the value of the major label and the date object. Note: major labels are applied only if the data type is date. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
constructor(props: {}) {
super(props);
this.state = {
groupLabelsFormatFunction: (value: string, date: object): any => {
return "<span style='font-style: italic;'>" + value + "<span>";
}
}
}
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
showGroupLabels={true} min={'June 15, 2013'} max={'August 21, 2013'} labelsFormat={'dd'}
markersFormat={'d'} minorTicksInterval={'day'} majorTicksInterval={'week'}
groupLabelsFormatFunction={this.state.groupLabelsFormatFunction}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| height | string | number | 100 |
|
Sets or gets the range selector's height.
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
height={200}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| labelsFormat | RangeSelectorLabelsFormat | null |
|
RangeSelectorLabelsFormat: "d" | "f" | "n" | "c" | "p" | "dd" | "ddd" | "dddd" | "h" | "hh" | "H" | "HH" | "m" | "mm" | "M" | "MM" | "MMM" | "MMMM" | "s" | "ss" | "t" | "tt" | "y" | "yy" | "yyy" | "yyyy"
Sets or gets the format of the labels.
Possible date formats: Note: When the data type is date, the
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
labelsFormat={'p'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| labelsFormatFunction | (value: RangeSelectorLabelsFormatFunction['value']) => string | null |
|
Interface RangeSelectorLabelsFormatFunction {
value?: string; } A custom callback function for rendering the labels. Has one argument - the value of the label. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
constructor(props: {}) {
super(props);
this.state = {
labelsFormatFunction: (value: string): any => {
return "<span style='color: red;'>" + value + "<span>";
}
}
}
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
labelsFormatFunction={this.state.labelsFormatFunction}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| labelsOnTicks | boolean | true |
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
labelsOnTicks={false}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| markersFormat | RangeSelectorLabelsFormat | null |
|
RangeSelectorLabelsFormat: "d" | "f" | "n" | "c" | "p" | "dd" | "ddd" | "dddd" | "h" | "hh" | "H" | "HH" | "m" | "mm" | "M" | "MM" | "MMM" | "MMMM" | "s" | "ss" | "t" | "tt" | "y" | "yy" | "yyy" | "yyyy"
Sets or gets the format of the markers.
Possible date formats: Note: When the data type is date, the
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
markersFormat={'p'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| markersFormatFunction | (value: RangeSelectorMarkersFormatFunction['value'], position: RangeSelectorMarkersFormatFunction['position']) => string | null |
|
Interface RangeSelectorMarkersFormatFunction {
value?: string; position?: string; } /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
constructor(props: {}) {
super(props);
this.state = {
markersFormatFunction: (value: string, position: string): any => {
return "<span style='color: red;'>" + value + "<span>";
}
}
}
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
markersFormatFunction={this.state.markersFormatFunction}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| majorTicksInterval | any | 10 |
|
Sets or gets the interval between major ticks.
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
majorTicksInterval={5}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| minorTicksInterval | any | 5 |
|
Sets or gets the interval between minor ticks.
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
showMinorTicks={true} minorTicksInterval={1}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| max | any | 100 |
|
Sets or gets the maximum value of the range selector scale.
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
max={80}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| min | any | 0 |
|
Sets or gets the minimum value of the range selector scale.
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
min={5}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| moveOnClick | boolean | true |
|
Sets or gets whether the position of the slider can be changed by clicking on the range selector. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
moveOnClick={false}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| padding | number | string | "auto" |
|
Sets or gets the range selector's padding.
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
constructor(props: {}) {
super(props);
this.state = {
padding: '40px 40px 0px 40px'
}
}
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
padding={this.state.padding}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| range | RangeSelectorRange | { from: 0, to: Infinity, min: 0, max: Infinity } |
|
Interface RangeSelectorRange {
from?: number | string; to?: number | string; min?: number | string; max?: number | string; } An object containing the following properties:
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
range={{ from: 10, to: 50 }}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| resizable | boolean | true |
|
Sets or gets whether the range selector's slider can be resized. Note: If /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
range={{ from: 10, to: 50 }} resizable={false}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| rtl | boolean | false |
|
Sets or gets whether the jqxRangeSelector's right-to-left support is enabled. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
rtl={true}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| showGroupLabels | boolean | false |
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
showGroupLabels={true} min={'June 15, 2013'} max={'August 21, 2013'} labelsFormat={'dd'}
markersFormat={'d'} minorTicksInterval={'day'} majorTicksInterval={'week'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| showMinorTicks | boolean | false |
|
Sets or gets whether minor ticks will be displayed. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
showMinorTicks={true}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| snapToTicks | boolean | true |
|
Sets or gets whether the slider will snap to the major and minor ticks. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
snapToTicks={false}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| showMajorLabels | boolean | false |
|
Sets or gets whether the major labels will be shown. Note: major labels are applied only if the data type is date. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
showMajorLabels={true}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| showMarkers | boolean | true |
|
Sets or gets whether the markers will be shown. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
showMarkers={false}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| theme | string | "" |
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
theme={'material'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| width | string | number | 400 |
|
Sets or gets the range selector's width.
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
width={500}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
Events |
||
| change | Event | |
|
This event is triggered when the slected range is changed. Code examples
Bind to the
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector} onChange={this.onChange}
/>
);
}
private onChange(e: Event): void {
alert('do something...');
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
Methods |
||
| Name | Arguments | Return Type |
| destroy | None | |
|
Removes the range selector from the DOM. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public componentDidMount(): void {
this.myRangeSelector.current!.destroy();
}
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| getRange | None | |
|
Gets the selected range. Returns an object with two fields. Range object fields:
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public componentDidMount(): void {
this.myRangeSelector.current!.getRange();
}
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| render | None | |
|
Renders the range selector. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public componentDidMount(): void {
this.myRangeSelector.current!.render();
}
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| refresh | None | |
|
Refreshes the range selector. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public componentDidMount(): void {
this.myRangeSelector.current!.refresh();
}
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| setRange | from, to | |
|
Sets the selected range. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxRangeSelector, { IRangeSelectorProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrangeselector';
class App extends React.PureComponent<{}, IRangeSelectorProps> {
private myRangeSelector = React.createRef<JqxRangeSelector>();
public componentDidMount(): void {
this.myRangeSelector.current!.setRange(20,80);
}
public render() {
return (
<JqxRangeSelector ref={this.myRangeSelector}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||