This repository was archived by the owner on Jul 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdefault.tsx
More file actions
85 lines (79 loc) · 2.85 KB
/
default.tsx
File metadata and controls
85 lines (79 loc) · 2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import { SliderComponent } from '@syncfusion/ej2-react-inputs';
import { SampleBase } from '../common/sample-base';
const slidercss = `
.content-wrapper {
width: 40%;
margin: 0 auto;
min-width: 185px;
}
.e-bigger .content-wrapper {
width: 80%;
}
.sliderwrap label {
padding-bottom: 26px;
font-size: 13px;
font-weight: 500;
margin-top: 15px;
}
.userselect {
-webkit-user-select: none;
/* Safari 3.1+ */
-moz-user-select: none;
/* Firefox 2+ */
-ms-user-select: none;
/* IE 10+ */
user-select: none;
/* Standard syntax */
}
`
export class Default extends SampleBase<{}, {}> {
render() {
return (
<div className='control-pane'>
<div className='control-section'>
<div className="content-wrapper">
<style>{slidercss}</style>
<div className='sliderwrap'>
<label className='labeltext'>Default Slider</label>
{/* Initialize Slider component */}
<SliderComponent value={30} />
</div>
<div className='sliderwrap'>
<label className='labeltext'>MinRange Slider</label>
{/* Set the type to render MinRange slider */}
<SliderComponent value={30} type='MinRange' />
</div>
<div className='sliderwrap'>
<label className='labeltext'>Range Slider</label>
{/* Set the initial range values for slider */}
<SliderComponent value={[30, 70]} type='Range' />
</div>
</div>
</div>
<div id="action-description">
<p>This sample demonstrates the default rendering of Slider component. Drag the thumb over the bar for selecting the values
between min and max.</p>
</div>
<div id="description">
<p>The Slider component allows the user to select a value or range of values in-between a min and max range, by dragging the thumb over the slider bar. There are three types of sliders available:</p>
<ul>
<li>Default - allows us to select a single value</li>
<li>MinRange – allows us to select a single value, but highlights with a range selection from the min value to the current
handle value</li>
<li>Range – allows us to select a range of values with two handles, where the handles was connected with a range selection</li>
<p>
In this demo we can see the Default, MinRange and Range slider types.
</p>
<p>
More information on the Slider instantiation can be found in this
<a target="_blank" href="http://ej2.syncfusion.com/documentation/slider/getting-started.html">
documentation section</a>
</p>
</ul>
</div>
</div>
)
}
}