Interval Module

A component that repeatedly increments a counter `n_intervals` with a fixed time delay between each increment. Interval is good for triggering a component on a recurring basis. The time delay is set with the property "interval" in milliseconds.

Types

Type Description

Attr

A list of children or a property for this dash component

Interval

A component that repeatedly increments a counter `n_intervals` with a fixed time delay between each increment. Interval is good for triggering a component on a recurring basis. The time delay is set with the property "interval" in milliseconds.

Prop

• interval (number; default 1000) - This component will increment the counter `n_intervals` every `interval` milliseconds • disabled (boolean) - If True, the counter will no longer update • n_intervals (number; default 0) - Number of times the interval has passed • max_intervals (number; default -1) - Number of times the interval will be fired. If -1, then the interval has no limit (the default) and if 0 then the interval stops running.

Functions and values

Function or value Description

Interval.interval id attrs

Full Usage: Interval.interval id attrs

Parameters:
    id : string
    attrs : Attr list

Returns: DashComponent

A component that repeatedly increments a counter `n_intervals` with a fixed time delay between each increment. Interval is good for triggering a component on a recurring basis. The time delay is set with the property "interval" in milliseconds. Properties: • id (string) - The ID of this component, used to identify dash components in callbacks. The ID needs to be unique across all of the components in an app. • interval (number; default 1000) - This component will increment the counter `n_intervals` every `interval` milliseconds • disabled (boolean) - If True, the counter will no longer update • n_intervals (number; default 0) - Number of times the interval has passed • max_intervals (number; default -1) - Number of times the interval will be fired. If -1, then the interval has no limit (the default) and if 0 then the interval stops running.

id : string
attrs : Attr list
Returns: DashComponent