Skip to components
DEVELOPER REFERENCE · v4.0.0

DurationDraft API

Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.

DurationDraft4 props0 callbacks0 methods

Props4

DurationDraft props
NameTypeDescription
valueRequired
string | number | ParsedDuration | nullInspect type
Value to display or edit. The declared type identifies the supported representation; change callbacks describe how edited values are emitted.
optionsRequired
DurationFieldOptions & { label?: string; invalidText?: string; actions?: Partial<import("../editor-actions").EditorActionText>; }Inspect type
Available choices or control configuration, according to the declared type; expand it to inspect each field.
applyRequired
(value: ParsedDuration | null) => voidInspect type
Commits the editor draft through the application-provided handler.
cancelRequired
() => voidInspect type
Cancel action or handler for discarding the current draft; false hides an action descriptor.

Events and callbacks0

No component-specific events or callbacks.

Methods0

No component-specific imperative methods. Use props and callbacks to control this component.