Skip to content

Allow custom values for EuiRange #960

Closed

Description

@cchaos

Right now, the range component only supports the typical step increments supported by the html input type="range" component. However, there are use cases where the steps may be exponential though visually they'd be best displayed equidistant.

Cloud example:
screen shot 2018-07-02 at 14 08 03 pm

Activity

  1. thompsongl commented on Jan 10, 2019

    @thompsongl
    Contributor

    I'm curious about the rationale for using EuiRange in the example above instead of a radio group.
    Especially when comparing to the radio group directly below, the intention and interaction are almost identical.

  2. cchaos commented on Jan 10, 2019

    @cchaos
    ContributorAuthor
  3. gjones commented on Jan 11, 2019

    @gjones
    Contributor

    @thompsongl You're correct, they are similar from an under-the-hood, technical standpoint. Although I may take some convincing that using radios is the most effective way to present 7-10 linear options.

    I think what matters here is user perception, scaling your cluster is a huge benefit of Elastic Cloud and we felt the best way to communicate the ease of increasing and decreasing your RAM is allowing the user to play around with a slider and watch your deployment architecture update in real time.

    Additionally there was a marketing push behind the project, which was itself externally called "Sliders", that painted us in a bit of a corner too 😃.

    I hope that makes sense and gives a bit of background, but I am always open to feedback.

  4. thompsongl commented on Jan 11, 2019

    @thompsongl
    Contributor

    Right on. I can see especially in terms of space constraints how this could be a win.
    My read is that there would be no scenario in which the slider is not locked to the steps, correct? Regardless of the context, it doesn't seem to make sense for this type of slider to allow for selecting values between the intervals.

  5. cchaos commented on May 8, 2019

    @cchaos
    ContributorAuthor

    This was added via #1485

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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