Skip to content

Provide standalone EuiAutoRefreshPicker component #1545

@pickypg

Description

@pickypg

When trying to use the EuiSuperDatePicker, I ran into a warning where it required onTimeChange to be set (which makes sense given that it's a required property).

<EuiSuperDatePicker
  isAutoRefreshOnly={true}
  isPaused={this.state.autorefreshIsPaused}
  onRefreshChange={this.onRefreshChange}
  refreshInterval={this.state.autorefreshInterval}
/>

This leads to a slightly unexpected error in the console until you supply the noop callback (onTimeChange={() => null}). I think that it would be useful to have a standalone component that behaves like the <EuiSuperDatePicker isAutoRefreshOnly={true} /> (aka without all of the date/time stuff).

From there, EuiSuperDatePicker could just embed that component while simplifying its usage for people that don't need date/time stuff.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions