OUTLINED adalah default; kode ini merender tombol teks sederhana dengan latar belakang yang jelas.
Tombol FILLED memiliki warna latar belakang yang dapat Anda setel dengan TextButton.setBackgroundColor(backgroundColor).
Untuk memanggil enum, Anda memanggil class, nama, dan properti induknya. Misalnya,
CardService.TextButtonStyle.OUTLINED.
Properti
Properti
Jenis
Deskripsi
OUTLINED
Enum
Tombol teks normal dengan latar belakang jelas. Default.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2024-03-15 UTC."],[[["`TextButtonStyle` is used to define the style of a `TextButton` in Google Apps Script's Card Service."],["It offers two options: `OUTLINED` (default, transparent background) and `FILLED` (colored background, customizable with `setBackgroundColor()`)."],["To use a style, refer to it using the syntax: `CardService.TextButtonStyle.STYLE_NAME` (e.g., `CardService.TextButtonStyle.OUTLINED`)."]]],[]]