Class RangeSliderInputBuilder


public class RangeSliderInputBuilder extends AbstractSliderBuilder<RangeSliderInputBuilder,BigDecimal>
Builder class for input type RangeSlider InputType.RANGESLIDER.
  • Constructor Details

  • Method Details

    • setFormatType

      Sets the format type of the slider range.
      Parameters:
      formatType - format type as RangeSliderInputBuilder.FormatType.NUMERIC or RangeSliderInputBuilder.FormatType.PERCENT.
      Returns:
      self
      Since:
      15.0 Southside
    • setColour

      public RangeSliderInputBuilder setColour(List<String> colours)
      Sets the colours of the range slider (needs to be three elements collection, if not the InputBuilderExceptions.ColourSectionsNumberException will be thrown).
      List of possible values:
      • informative (blue)
      • negative (red)
      • negative-strong (super red)
      • positive (green)
      • positive-strong (super green)
      • warning (yellow)
      • neutral (gray)
      • accent (current accent color from settings)
      • inverted (dark color for white theme, light color for dark theme)
      Example:
      
       def slider = api.inputBuilderFactory()
           .createRangeSliderEntry("myRangeSlider")
           .setColour(['neutral', 'accent', 'neutral'])
           .buildContextParameter();
       
      The range slider entry is rendered with colours:

      Specified by:
      setColour in class AbstractSliderBuilder<RangeSliderInputBuilder,BigDecimal>
      Parameters:
      colours - of the slider.
      Returns:
      self
      Since:
      15.0 Southside