Google Apps Script API
    Preparing search index...

    A widget that displays one or more "keys" around a text "value". The possible keys include an icon, a label above and a label below. Setting the text content and one of the keys is required using setContent(text) and one of setIcon(icon), setIconUrl(url), setTopLabel(text), or setBottomLabel(text).

    var imageKeyValue = CardService.newKeyValue()
        .setIconUrl("https://icon.png")
        .setContent("KeyValue widget with an image on the left and text on the right");
    
    var textKeyValue = CardService.newKeyValue()
        .setTopLabel("Text key")
        .setContent("KeyValue widget with text key on top and cotent below");
    
    var multilineKeyValue = CardService.newKeyValue()
        .setTopLabel("Top label - single line)")
        .setContent("Content can be multiple lines")
        .setMultiline(true)
        .setBottomLabel("Bottom label - single line");
    
    interface KeyValue {
        setAuthorizationAction(action: AuthorizationAction): KeyValue;
        setBottomLabel(text: string): KeyValue;
        setButton(button: GoogleAppsScript.Card_Service.Button): KeyValue;
        setComposeAction(
            action: GoogleAppsScript.Card_Service.Action,
            composedEmailType: ComposedEmailType,
        ): KeyValue;
        setContent(text: string): KeyValue;
        setIcon(icon: Icon): KeyValue;
        setIconAltText(altText: string): KeyValue;
        setIconUrl(url: string): KeyValue;
        setMultiline(multiline: boolean): KeyValue;
        setOnClickAction(action: GoogleAppsScript.Card_Service.Action): KeyValue;
        setOnClickOpenLinkAction(
            action: GoogleAppsScript.Card_Service.Action,
        ): KeyValue;
        setOpenLink(openLink: OpenLink): KeyValue;
        setSwitch(switchToSet: Switch): KeyValue;
        setTopLabel(text: string): KeyValue;
    }
    Index

    Methods