Class ChipList

चिपसूची

इसमें Chip ऑब्जेक्ट का एक सेट होता है, जो एक पंक्ति में दिखाए जाते हैं. साथ ही, ये ऑब्जेक्ट अगली लाइन में रैप करके, हॉरिज़ॉन्टल स्क्रोल किए जा सकते हैं.

यह सुविधा, Google Chat ऐप्लिकेशन के लिए उपलब्ध है. Google Workspace के ऐड-ऑन के लिए, डेवलपर की झलक में.

const chip = CardService.newChip();
// Finish building the text chip...

const chipList = CardService.newChipList()
                     .setLayout(CardService.ChipListLayout.WRAPPED)
                     .addChip(chip);

तरीके

तरीकारिटर्न टाइपसंक्षिप्त विवरण
addChip(chip)ChipListचिप जोड़ता है.
setLayout(layout)ChipListचिप की सूची का लेआउट सेट करता है.

ज़्यादा जानकारी वाला दस्तावेज़


setLayout(layout)

चिप की सूची का लेआउट सेट करता है. अगर यह सेट नहीं है, तो डिफ़ॉल्ट रूप से ChipListLayout.WRAPPED लेआउट लागू हो जाता है.

const chip = CardService.newChip();
// Finish building the text chip...

const chipList =
    CardService.newChipList()
        .setLayout(CardService.ChipListLayout.HORIZONTAL_SCROLLABLE)
        .addChip(chip);

पैरामीटर

नामटाइपब्यौरा
layoutChipListLayoutचिप की सूची का लेआउट.

वापसी का टिकट

ChipList — चेन करने के लिए यह ऑब्जेक्ट.