Skip to content

TimePicker🔗

Definition🔗

type TimePicker struct {
    // Whether timepicker is visible or not.
    Hidden bool `json:"hidden"`
    // Interval options available in the refresh picker dropdown.
    RefreshIntervals []string `json:"refresh_intervals"`
    // Whether timepicker is collapsed or not. Has no effect on provisioned dashboard.
    Collapse bool `json:"collapse"`
    // Whether timepicker is enabled or not. Has no effect on provisioned dashboard.
    Enable bool `json:"enable"`
    // Selectable options available in the time picker dropdown. Has no effect on provisioned dashboard.
    TimeOptions []string `json:"time_options"`
}

Methods🔗

UnmarshalJSONStrict🔗

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode TimePicker from JSON.

Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (timePicker *TimePicker) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two TimePicker objects.

func (timePicker *TimePicker) Equals(other TimePicker) bool

Validate🔗

Validate checks all the validation constraints that may be defined on TimePicker fields for violations and returns them.

func (timePicker *TimePicker) Validate() error

See also🔗