public Slider setValues ( Integer value1 , Integer value2 ) { if ( value1 != null && value2 != null ) { ArrayItemOptions < IntegerItemOptions > options = new ArrayItemOptions < IntegerItemOptions > ( ) ; options . add ( new IntegerItemOptions ( value1 ) ) ; options . add ( new IntegerItemOptions ( value2 ) ) ; this . options . put ( "values" , options ) ; } return this ; }
This option can be used to specify multiple handles . If range is set to true the length of values should be 2 .