Skip to content

TimePicker🔗

Definition🔗

class TimePicker:
    # Whether timepicker is visible or not.
    hidden: bool
    # Interval options available in the refresh picker dropdown.
    refresh_intervals: list[str]
    # Whether timepicker is collapsed or not. Has no effect on provisioned dashboard.
    collapse: bool
    # Whether timepicker is enabled or not. Has no effect on provisioned dashboard.
    enable: bool
    # Selectable options available in the time picker dropdown. Has no effect on provisioned dashboard.
    time_options: list[str]

Methods🔗

to_json🔗

Converts this object into a representation that can easily be encoded to JSON.

def to_json() -> dict[str, object]

from_json🔗

Builds this object from a JSON-decoded dict.

@classmethod
def from_json(data: dict[str, typing.Any]) -> typing.Self

See also🔗