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

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

Common format for declaring a menu item, or button, that appears within a host app.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#label

def label() -> ::String
Returns
  • (::String) — Required. User-visible text describing the action taken by activating this extension point. For example, "Insert invoice".

#label=

def label=(value) -> ::String
Parameter
  • value (::String) — Required. User-visible text describing the action taken by activating this extension point. For example, "Insert invoice".
Returns
  • (::String) — Required. User-visible text describing the action taken by activating this extension point. For example, "Insert invoice".

#logo_url

def logo_url() -> ::String
Returns
  • (::String) — The URL for the logo image shown in the add-on toolbar.

    If not set, defaults to the add-on's primary logo URL.

#logo_url=

def logo_url=(value) -> ::String
Parameter
  • value (::String) — The URL for the logo image shown in the add-on toolbar.

    If not set, defaults to the add-on's primary logo URL.

Returns
  • (::String) — The URL for the logo image shown in the add-on toolbar.

    If not set, defaults to the add-on's primary logo URL.

#run_function

def run_function() -> ::String
Returns
  • (::String) — Required. The endpoint to execute when this extension point is activated.

#run_function=

def run_function=(value) -> ::String
Parameter
  • value (::String) — Required. The endpoint to execute when this extension point is activated.
Returns
  • (::String) — Required. The endpoint to execute when this extension point is activated.