Configure a decorative slider
Create a colored slider option for a number input on your input form screen. Decorative sliders contain sections that can be associated with a specific color and label to aid visual representation. These labels are translatable.
Antes de Iniciar
Role required: admin
This task assumes that you already have the basis of an input form screen configured before adding the slider option for a number input. For more information, see Configure an input form screen.
Por Que e Quando Desempenhar Esta Tarefa
Creating a slider render type is more involved than for the other render types: integer, line, percentage. The configuration involves the creation of multiple input attributes. Required attributes are Min. Max, and StepSize. For a complete list of input attributes you can use with a number slider, see Number render types and compatible input attributes.
You must add an additional input attribute called Decoration, which gives the slider a colorful and segmented appearance. A decorative slider has between two through eight sections, where you define a start value and end value. The start value must match the end value of the previous entry. In addition, you must select a color for each section. A JSON example script is provided, which contains four defined sections. This script is editable.
Procedimento
O que Fazer Depois
You can add translated text to each of the text values displays on your slider. For more information, see Configure translated values for decorative slider.