-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
97 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,14 @@ | ||
# NumberSpinner | ||
# budibase-component-number-spinner | ||
|
||
A Budibase **number field form input wrapper** for https://github.com/bohnacker/svelte-number-spinner | ||
|
||
![Screenshot 2022-09-29 at 16 25 37](https://user-images.githubusercontent.com/101575380/193073284-c8369e94-d56c-4a60-acb7-757d0ba1bbc6.png) | ||
|
||
|
||
# Description | ||
A number input that can be controlled with the mouse and keyboard | ||
A number input that can be controlled with the mouse and keyboard. | ||
|
||
Find out more about [Budibase](https://github.com/Budibase/budibase). | ||
Adjust the mininum and maximum values, as well as the speed, decimals and step of the spinner. | ||
|
||
## Instructions | ||
|
||
To build your new plugin run the following in your Budibase CLI: | ||
``` | ||
budi plugins --build | ||
``` | ||
|
||
You can also re-build everytime you make a change to your plugin with the command: | ||
``` | ||
budi plugins --watch | ||
``` | ||
You can check the circular checkbox to loop the max into the min value and vice-versa | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<script> | ||
import "@spectrum-css/fieldlabel/dist/index-vars.css" | ||
export let size = "M" | ||
export let muted | ||
</script> | ||
|
||
<label | ||
class:muted | ||
for="" | ||
class={`spectrum-FieldLabel spectrum-FieldLabel--size${size}`} | ||
> | ||
<slot /> | ||
</label> | ||
|
||
<style> | ||
label { | ||
padding: 0; | ||
white-space: nowrap; | ||
color: var(--spectrum-global-color-gray-700); | ||
} | ||
.muted { | ||
opacity: 0.5; | ||
} | ||
</style> |