Auto refresh
This is a component that is used by the EuiSuperDatePicker component to create an automatic refresh configuration. It merely provides a common UI pattern but the actual refresh counter is maintained by you. It isPaused by default and the refreshInterval is set in milliseconds.
Auto refresh button
If you're looking for a more compact version, you can use EuiAutoRefreshButton, which is the same button that is appended to EuiSuperDatePicker. For even more compactness, add shortHand={true} to reduce the active unit to a single letter.
Refresh interval
For even more customizability, you can use the EuiRefreshInterval component which simply provides the form inputs.
Props
EuiAutoRefresh
Prop | Description and type | Default value |
|---|---|---|
Prop onRefreshChange# | Description and type Passes back the updated state of ApplyRefreshInterval | Default value Required |
Prop isPaused# | Description and type Is refresh paused or running. boolean | Default value true |
Prop refreshInterval# | Description and type Refresh interval in milliseconds. number | Default value 1000 |
Prop minInterval# | Description and type Allows specifying a minimum interval in milliseconds number | Default value 0 |