Skip to content

Slide limit based on another slider value #344

@haurs

Description

@haurs

Hi, I'm trying set a limit on a second slider (car_loan_excess) based on the current value of another slider (car_loan_amount). I don't want the second slider to extend above the main slider value. I tried using the MaxLimit but that didn't do anything (maxLimit: car_loan_amount), so I'm not sure if this is possible. Any suggestions?

$scope.car_loan_amount = {
    minValue: 25000,
    options: {
      floor: 500,
      ceil: 50000,
      step: 500,
      precision: 0,
      draggableRange: false,
      showSelectionBar: false,
      hideLimitLabels: false,
      readOnly: false,
      disabled: false,
      showTicks: false,
      showTicksValues: false
    }
  };
  $scope.car_loan_excess = {
    minValue: 0,
    options: {
      floor: 0,
      ceil: 50000,
      step: 500,
      precision: 0,
      maxLimit: car_loan_amount,
      draggableRange: false,
      showSelectionBar: false,
      hideLimitLabels: false,
      readOnly: false,
      disabled: false,
      showTicks: false,
      showTicksValues: false
    }
  };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions