-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.hbs
117 lines (83 loc) · 1.94 KB
/
template.hbs
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# Custom Range
> Custom range - a ready to use presets. Here you can download the source or bundled code.
## Features
- Easy to use
- Resposive and adaptive
- Easy to customize
## Table of Contents
- [Quick start](#quick-start)
- [Install](#install)
- [Initialization](#initialization)
- [Methods](#methods)
{{#functions}}
- [{{name}}](#{{name}})
{{/functions}}
## Quick start
### Install
#### Download
Download minified or not compressed bundle
#### Include with <script>
Download and install with `script`.
Minified:
```html
<!-- if you need the single range -->
<link rel="stylesheet" href="./range.min.css">
<!-- if you need the multi-range -->
<link rel="stylesheet" href="./multi-range.min.css">
<script src="range.min.js"></script>
```
Not compressed:
```html
<!-- if you need the single range -->
<link rel="stylesheet" href="./range.css">
<!-- if you need the multi-range -->
<link rel="stylesheet" href="./multi-range.css">
<script src="range.js"></script>
```
##### CDN
Currently not supported
### Initialization
#### ES6
```js
import SingleRange from './directory-name'
const range = new SingleRange(document.querySelector(".js-range"));
const range1 = new MultiRange(
document.querySelector(".js-multi-range-left"),
document.querySelector(".js-multi-range-right")
);
```
## Methods
{{#functions}}
### {{name}}
{{#if description}}{{description}}{{/if}}
{{#if since}}
#### Since
- {{since}}
{{/if}}
{{#if params}}
#### Params
{{#each params}}
- `{{name}}`
{{#if type.names}}- Type: `{{type.names}}`{{/if}}
{{#if description}}- Description: {{description}}{{/if}}
{{/each}}
{{/if}}
{{#if returns}}
#### Returns
{{#each returns}}
- `{{type.names}}`
{{/each}}
{{/if}}
{{#if examples}}
#### Example
{{#each examples}}
```JS
{{{this}}}
```
{{/each}}
{{/if}}
<a href="https://github.com/marcusblanco/custom-range/blob/master/src/scripts/range.js" target="_blank">Source
code</a>
* * *
{{/functions}}
© marcusblanco (Danil Duganov)