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. ItisPaused
by default and the refreshInterval
is set in milliseconds.Loading...
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.
Loading...
Refresh interval
For even more customizability, you can use the EuiRefreshInterval component which simply provides the form inputs.
Loading...
Props
EuiAutoRefresh
Extends InputHTMLAttributes
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# |