Skip to content

Instantly share code, notes, and snippets.

@Xiryl
Created Jan 5, 2022
Embed
What would you like to do?
addon -3
const txtInsertId =
CardService.newTextParagraph().setText("<b>Bold text</b><br/> -Can you read this?");
const textInput = CardService.newTextInput()
.setFieldName("txt_input_id_to_process")
.setTitle("Write something here...");
const ico = CardService.newIconImage().setIconUrl(
"ico link"
);
const actionBtnDoWork =
CardService.newAction().setFunctionName("onDoWorkBtn");
const multilineDecoratedText = CardService.newDecoratedText()
.setText("UPLOAD")
.setTopLabel("EXECUTE COMMAND")
.setWrapText(true)
.setOnClickAction(actionBtnDoWork)
.setStartIcon(ico);
const section2 = CardService.newCardSection()
.addWidget(txtInsertId)
.addWidget(textInput)
.addWidget(multilineDecoratedText);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment