Skip to content

Conditionally show high value #84

Open
@HellooooNewman

Description

@HellooooNewman

Trying to conditionally use the high value based on a truth or false condition. Worse comes to worse I have two templates, one with the high value excluded but that's not preferable.

Here's the current template

<ng5-slider
        [(value)]="value"
        [(highValue)]="maxValueLabel ? null : maxValue"
        [options]="options"
        (userChange)="onUserChange($event)"
></ng5-slider>

Options config

this.options = {
      floor: 0,
      ceil: this.maxValue,
      keyboardSupport: true,
      showSelectionBar: this.showSelectionBarEnd ? false : true,
      step: 1000,
      hideLimitLabels: true,
      noSwitching: true,
      disabled: this.disabled,
      showSelectionBarEnd: this.showSelectionBarEnd
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedAccepted for development.enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions