Class Card
कार्ड
संदर्भ कार्ड, जो यूज़र इंटरफ़ेस (यूआई) में एक व्यू दिखाता है.
const cardSection = CardService.newCardSection();
// Finish building the card section ...
const card = CardService.newCardBuilder()
.setName('Card name')
.setHeader(CardService.newCardHeader().setTitle('Card title'))
.addSection(cardSection)
.build();
तरीके
तरीका | रिटर्न टाइप | संक्षिप्त विवरण |
printJson() | String | इस ऑब्जेक्ट को JSON फ़ॉर्मैट में प्रिंट करता है. |
ज़्यादा जानकारी वाला दस्तावेज़
printJson()
इस ऑब्जेक्ट को JSON फ़ॉर्मैट में प्रिंट करता है. यह सिर्फ़ डीबग करने के लिए है.
वापसी का टिकट
String
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-12-21 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-12-21 (UTC) को अपडेट किया गया."],[[["Cards provide single views in the UI and are built using sections."],["Cards can have names, headers, and sections added."],["A `printJson()` method is available for debugging the card's JSON representation."]]],["A `Card` is a UI element representing a single view, built using `CardService`. The process involves creating a `CardSection`, then a `Card` builder. The builder sets the `Card`'s name, header, and adds the `CardSection`. Finally, the `Card` is built. The `printJson()` method returns a JSON string representation of the `Card` for debugging. This method is intended for debugging purposes only.\n"]]