Skip to content

Commit 0fc17ce

Browse files
committed
Added possibility to restrict to horizontal or vertical dragging
1 parent 9cb197c commit 0fc17ce

File tree

8 files changed

+316
-198
lines changed

8 files changed

+316
-198
lines changed

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,18 @@ npm install --save svelte-number-spinner
2525

2626
## Props
2727

28-
| Prop | Type | Default | Description |
29-
| -------------- | ------- | ----------- | ---------------------------- |
30-
| value | Number | 0 | Input value |
31-
| min | Number | -MAX_VALUE | Minimum value |
32-
| max | Number | +MAX_VALUE | Maximum value |
33-
| step | Number | 1 | Step |
34-
| decimals | Number | 0 | Number of decimals |
35-
| width | Number | 60 | Width of the component |
36-
| height | Number | 25 | Height of the component |
37-
| class | String | undefined | Custom component class name |
28+
| Prop | Type | Default | Description |
29+
| -------------- | ------- | ----------- | --------------------------------------- |
30+
| value | Number | 0 | Input value |
31+
| min | Number | -MAX_VALUE | Minimum value |
32+
| max | Number | +MAX_VALUE | Maximum value |
33+
| step | Number | 1 | Step |
34+
| decimals | Number | 0 | Number of decimals |
35+
| width | Number | 60 | Width of the component |
36+
| height | Number | 25 | Height of the component |
37+
| horizontal | Boolean | true | Change value by dragging horizontally |
38+
| vertical | Boolean | true | Change value by dragging vertically |
39+
| class | String | undefined | Custom component class name |
3840

3941
<br />
4042

example/public/build/bundle.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/public/build/bundle.css.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)