Slider

Slider #

The slider field generates a slider for entering numbers.

slider

slider

Properties #

propertyvalue typeoptionaldescription
keystringmandatoryKeys are for internal use and must be unique
titlestringoptionalThe title of the element
stepnumbermandatoryAmount between steps
minnumbermandatoryStarting value
maxnumbermandatoryEnding value
autoSavebooleanoptional (default: false)Form data is automatically saved after changing the value
defaultstringoptional (default: null)default value when the key is not set yet
tipstringoptional (default: null)Text entered here with markdown formatting is displayed as context help in an overlay box

Sample #

Configuration #

./quiqr/model/base.
     
key: sample_field
max: 800
min: 0
step: 10
title: Sample field
type: slider
key = "sample_field"
max = 800
min = 0
step = 10
title = "Sample field"
type = "slider"
{
   "key": "sample_field",
   "max": 800,
   "min": 0,
   "step": 10,
   "title": "Sample field",
   "type": "slider"
}

Output #

sample_field: 300