Skip to content

[EuiDualRange] Add loading indicator #5645

Closed

Description

@cqliu1

I saw that EuiRange has an isLoading prop, but EuiDualRange does not. I'm using the EuiDualRange component for the range slider input control in Dashboard , and it'd be great if EuiDualRange could handle rendering a loading indicator.

Activity

  1. thompsongl commented on Feb 16, 2022

    @thompsongl
    Contributor

    Looks like EuiRange only respects the isLoading prop on dropdown implementations: https://elastic.github.io/eui/#/forms/range-sliders#inputs-with-range-in-a-dropdown
    EuiDualRange should match, if it's confirmed that this is valuable from a design perspective.

  2. added
    design decision
    on Feb 16, 2022
  3. elizabetdev commented on Feb 17, 2022

    @elizabetdev
    Contributor

    As @thompsongl mentioned the isLoading prop only works in a dropdown implementation. If we follow the same pattern for the EuiDualRange this how it would look like:

    Screenshot 2022-02-17 at 16 42 24

    @cqliu1 would this work for your use case?

    Even if it doesn't work I think we should add this prop to make both range sliders more consistent. Also, we should explain in the props table that the isLoading prop only works on dropdown implementations.

  4. added and removed
    design decision
    on Feb 17, 2022
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