Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lesaff/range_slider
HTML5 Range Slider fieldtype Add-on for Statamic
https://github.com/lesaff/range_slider
Last synced: 9 days ago
JSON representation
HTML5 Range Slider fieldtype Add-on for Statamic
- Host: GitHub
- URL: https://github.com/lesaff/range_slider
- Owner: lesaff
- Created: 2015-04-13T04:39:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-10T13:47:57.000Z (over 9 years ago)
- Last Synced: 2023-08-06T05:21:24.572Z (over 1 year ago)
- Language: PHP
- Size: 156 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HTML5 Range Slider fieldtype Add-on for Statamic
By Rudy Affandi (2015)
Version 1.0.0## What is this?
`range_slider` is used for input fields that should contain a value within a range. Depending on browser support, the input field can be displayed as a slider control.## Changelog
1.0.0 - Initial release## Installation
Copy the 'range_slider' folder to the '_add-ons' folder in your Statamic website.## How to use
Simply give your field a type of `range_slider`
```
col_width:
type: range_slider
display: Column width (based on grid of 10)
min: 1
max: 10
step: 1
default_value: 5
```
*Parameters*- `min`: The expected lower bound for the element’s value.
- `max`: The expected upper bound for the element’s value.
- `step`: Specifies the value granularity of the element’s value.
- `default_value`: Set the default value for your input*format*
A string representing a number.