TimeframeSelector
Use the TimeframeSelector
to let users select a timeframe by choosing a from
and to value or one of the presets for common timeframes.
TimeframeSelectorProps
Signature:
export declare type TimeframeSelectorProps = <<{
from: ;
to: ;
}> | <> | , (value: | ) => > & & & & & {
/**
* Shows the button if set to true.
* @defaultValue false
*/
clearable?: ;
/**
* The ISODatetime of the earliest datetime that can be configured.
* @defaultValue '1677-09-21T00:12:43.145224192Z'
*/
min?: ;
/**
* The ISODatetime of the latest datetime that can be configured.
* @defaultValue '2262-04-11T23:47:16.854775807Z'
*/
max?: ;
/**
* The precision of the time shown in the display value.
* @defaultValue
*/
precision?: | | ;
/**
* Whether the TimeframeStepper is shown.
* @defaultValue true
*/
stepper?: ;
};
TimeframeSelectorBaseProps — deprecated
- please use TimeframeSelectorProps instead.
, , , ,
Name | Type | Default | Description |
---|---|---|---|
clearable? | false | Shows the "Clear selection" button if set to true. | |
readOnly? | false | Determines whether the component is in read-only mode, which means the overlay doesn't open and the onChange isn't called. | |
min? | '1677-09-21T00:12:43.145224192Z' | The ISODatetime string of the earliest datetime that can be configured. | |
max? | '2262-04-11T23:47:16.854775807Z' | The ISODatetime string of the latest datetime that can be configured. | |
precision? | | | | 'minutes' | The precision of the time shown in the display value. |
stepper? | - | Whether the TimeframeStepper is shown. |
TimeframeSelectorControlledProps — deprecated
- please use TimeframeSelectorProps instead.
Name | Type | Default | Description |
---|---|---|---|
value | <{
from: ;
to: ;
}> | <> | | - | The controlled value of the timeframe selector, containing the 'from' and 'to' timeframe details. |
onChange | (value: | ) => | - | Handler gets called if value state has changed. |
TimeframeSelectorUncontrolledProps — deprecated
- please use TimeframeSelectorProps instead.
Name | Type | Default | Description |
---|---|---|---|
defaultValue? | <{
from: ;
to: ;
}> | <> | | - | The default, uncontrolled value of the timeframe selector, containing the 'from' and 'to' timeframe details. |
onChange? | (value: | ) => | - | Handler gets called if value state has changed. |