grafana/scenes

feature request: SceneTimePicker could support limited time picker settings.

Opened this issue · 0 comments

I'd like to be able to restrict the time picker values available in a Scene, similar to how I can control SceneRefreshPicker.

Something like:

interface SceneTimePickerState extends SceneObjectState {
    hidePicker?: boolean;
    isOnCanvas?: boolean;
    freeTimePicker?: boolean; // controls whether any time interval can be set, using the calendar / time format interface.
    intervals?: string[]; // controls which intervals appear in the RHS of the time picker
    minInterval?: string; // controls the smallest interval that can be set in SceneTimePicker
}