View Source GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints (google_api_drive_labels v0.2.0)

UI display hints for rendering an option.

Attributes

  • badgeColors (type: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BadgeColors.t, default: nil) - The colors to use for the badge. Changed to Google Material colors based on the chosen properties.badge_config.color.
  • badgePriority (type: String.t, default: nil) - The priority of this badge. Used to compare and sort between multiple badges. A lower number means the badge should be shown first. When a badging configuration is not present, this will be 0. Otherwise, this will be set to BadgeConfig.priority_override or the default heuristic which prefers creation date of the label, and field and option priority.
  • darkBadgeColors (type: GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BadgeColors.t, default: nil) - The dark-mode color to use for the badge. Changed to Google Material colors based on the chosen properties.badge_config.color.
  • disabled (type: boolean(), default: nil) - Whether the option should be shown in the UI as disabled.
  • hiddenInSearch (type: boolean(), default: nil) - This option should be hidden in the search menu when searching for Drive items.
  • shownInApply (type: boolean(), default: nil) - This option should be shown in the apply menu when applying values to a Drive item.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints{
    badgeColors:
      GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BadgeColors.t()
      | nil,
    badgePriority: String.t() | nil,
    darkBadgeColors:
      GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2BadgeColors.t()
      | nil,
    disabled: boolean() | nil,
    hiddenInSearch: boolean() | nil,
    shownInApply: boolean() | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.