수평 구분선입니다. 부가기능 카드에 구분선을 추가하려면 CardService
내에서 newDivider()
메서드를 사용합니다. 예를 들어 다음 샘플은 구분선으로 구분된 두 단락으로 구성된 간단한 카드를 빌드합니다.
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; }