Skip to content

Loading State in Search Widget #1004

Description

@sharjeelyunus

Is your feature request related to a problem? Please describe.
when using onSearch and calling an api, it takes some time to load the data, but till then there is no way to show the loading

Describe the solution you'd like
there should be isLoading and loadingWidget properties in Search and MultiSelect widget
when isLoading is true, it should append the loading widget, which shouldn't be clickable

Describe alternatives you've considered
tried adding a loading object when api is loading, but that object remains clickable, i.e when user clicks the loading object, it selects that widget

Additional context
I was trying to improve the Patient search, by doing a local search of advocate's patient and calling the api in parallel, but this confuses the user as there is no loading state. Kinda need a loading state so we can display we the local searched results till the api is loading, and when get response from api, use that

Activity

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

Metadata

Metadata

Assignees

Labels

p1High priority

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions