Google Workspace Add-ons V1 API - Class Google::Apps::Script::Type::LayoutProperties (v0.2.0)

Reference documentation and code samples for the Google Workspace Add-ons V1 API class Google::Apps::Script::Type::LayoutProperties.

Card layout properties shared across all add-on host applications.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#primary_color

def primary_color() -> ::String
Returns
  • (::String) — The primary color of the add-on. It sets the color of toolbar. If no primary color is set explicitly, the default value provided by the framework is used.

#primary_color=

def primary_color=(value) -> ::String
Parameter
  • value (::String) — The primary color of the add-on. It sets the color of toolbar. If no primary color is set explicitly, the default value provided by the framework is used.
Returns
  • (::String) — The primary color of the add-on. It sets the color of toolbar. If no primary color is set explicitly, the default value provided by the framework is used.

#secondary_color

def secondary_color() -> ::String
Returns
  • (::String) — The secondary color of the add-on. It sets the color of buttons. If primary color is set but no secondary color is set, the secondary color is the same as the primary color. If neither primary color nor secondary color is set, the default value provided by the framework is used.

#secondary_color=

def secondary_color=(value) -> ::String
Parameter
  • value (::String) — The secondary color of the add-on. It sets the color of buttons. If primary color is set but no secondary color is set, the secondary color is the same as the primary color. If neither primary color nor secondary color is set, the default value provided by the framework is used.
Returns
  • (::String) — The secondary color of the add-on. It sets the color of buttons. If primary color is set but no secondary color is set, the secondary color is the same as the primary color. If neither primary color nor secondary color is set, the default value provided by the framework is used.