systemhaus / inputrange
Provides a form field for the HTML5 input range element
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 0
Type:contao-module
Requires
- contao-community-alliance/composer-installer: *
- contao/core: >=3.2,<4-dev
Replaces
- contao-legacy/inputrange: *
This package is auto-updated.
Last update: 2024-12-08 21:44:58 UTC
README
This extension provides a widget for usage in the form generator of Contao. The frontend output is a range slider with a knob to select a value from between a lower and an upper limit.
Installation
- Okay: Clone the repository or download as zip file to system/modules
- Better: Use the Contao Extension Repository to install the extension.
- Ideal: Use the new Composer client to install.
Important notice
As the range slider input is a HTML5 element, this extension will only work correctly in HTML5 websites. If your page layout is set to XHTML the frontend will issue a red warning. Nothing bad will happen, but range sliders are simply not supported in XHTML. Sorry.
Usage
- Create a new form element in the form of your choice
- Select "Range" as the widget type
- At least set a lower and an upper limit
- If necessary, specify a gradation value to only allow for certain values
- You can also set indicator values that will be shown along the range slider to make picking values easier
- Optionally set a default value to specify the intial knob position
Enhancing
The frontend output is styled by the user agent stylesheet which mostly relies on the Operating System User Interface. If you'd prefer to enhance that style, there are a number of tutorials out there on the web. Some helpful ones are this and that.
There also is a complete overview of what can be done on another great site.
Feedback and Issues
Please use the GitHub page of this extension to submit feedback and create issues.
A notice on compatibility: This extension will mostly be used in Contao LTS versions. It might or might not work with the intermediate releases of Contao.