Class Suggestions
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คําแนะนํา
คําแนะนําที่เติมข้อความอัตโนมัติเพื่อเสริมวิดเจ็ต TextInput
var textInput = CardService.newTextInput()
.setSuggestions(CardService.newSuggestions()
.addSuggestion("First suggestion")
.addSuggestion("Second suggestion"))
เอกสารประกอบโดยละเอียด
addSuggestion(suggestion)
เพิ่มการแนะนําข้อความ
พารามิเตอร์
ชื่อ | ประเภท | คำอธิบาย |
suggestion | String | ข้อความคําแนะนํา |
ไปกลับ
Suggestions
— เป็นออบเจ็กต์นี้เพื่อเป็นเชน
addSuggestions(suggestions)
เพิ่มรายการคําแนะนําข้อความ
พารามิเตอร์
ชื่อ | ประเภท | คำอธิบาย |
suggestions | Object[] | อาร์เรย์ของคําแนะนําสตริง |
ไปกลับ
Suggestions
— เป็นออบเจ็กต์นี้เพื่อเป็นเชน
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-08-17 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"ไม่มีข้อมูลที่ฉันต้องการ"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"ล้าสมัย"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"ปัญหาเกี่ยวกับการแปล"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"อื่นๆ"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"เข้าใจง่าย"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"แก้ปัญหาของฉันได้"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"อื่นๆ"
}]