Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Divider
Un divisor horizontal. Para agregar un divisor a tu tarjeta de complementos, usa newDivider().
dentro de CardService. En el siguiente ejemplo, se compila una tarjeta simple con 2
párrafos separados por un divisor.
function buildCard() {
let cardSection1TextParagraph1 = CardService.newTextParagraph()
.setText('Hello world!');
let cardSection1Divider1 = CardService.newDivider();
let cardSection1TextParagraph2 = CardService.newTextParagraph()
.setText('Hello world!');
let cardSection1 = CardService.newCardSection()
.addWidget(cardSection1TextParagraph1)
.addWidget(cardSection1Divider1)
.addWidget(cardSection1TextParagraph2);
let card = CardService.newCardBuilder()
.addSection(cardSection1)
.build();
return card;
}
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2024-08-22 (UTC)"],[[["Horizontal dividers are visual elements used to separate content within an add-on card for better readability."],["Use the `newDivider()` method within the `CardService` class to create a divider element."],["Dividers can be added to card sections along with other widgets like text paragraphs."]]],[]]