Enum DisplayStyle
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
প্রদর্শন শৈলী একটি enum যা কার্ডের প্রদর্শন শৈলী সংজ্ঞায়িত করে।
Display Style.REPLACE
মানে কার্ড স্ট্যাকের উপরের কার্ডের ভিউ প্রতিস্থাপন করে কার্ড দেখানো হয়েছে।
Display Style.PEEK
মানে কার্ডের শিরোনামটি সাইডবারের নীচে প্রদর্শিত হয়, যা স্ট্যাকের বর্তমান শীর্ষ কার্ডকে আংশিকভাবে আবৃত করে। হেডারে ক্লিক করলে কার্ডটি কার্ড স্ট্যাকের মধ্যে পপ হয়। যদি কার্ডের কোনো হেডার না থাকে, তাহলে একটি জেনারেটেড হেডার ব্যবহার করা হয়।
Display Style
শুধুমাত্র প্রাসঙ্গিক ট্রিগার ফাংশন থেকে ফিরে আসা কার্ডের জন্য কাজ করে।
একটি enum কল করার জন্য, আপনি তার পিতামাতার শ্রেণী, নাম এবং সম্পত্তি কল করুন। উদাহরণস্বরূপ, CardService.DisplayStyle.PEEK
।
বৈশিষ্ট্য
সম্পত্তি | টাইপ | বর্ণনা |
---|
PEEK | Enum | বিদ্যমান সামগ্রীর উপর অ্যাড-অন সামগ্রীর নীচে কার্ড শিরোনামটি দেখান৷ |
REPLACE | Enum | বিদ্যমান সামগ্রী প্রতিস্থাপন করে কার্ড দেখান। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003e\u003ccode\u003eDisplayStyle\u003c/code\u003e is an enum used to define how a card is displayed within the Google Workspace Add-on UI.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two options: \u003ccode\u003eREPLACE\u003c/code\u003e, which replaces the current top card, and \u003ccode\u003ePEEK\u003c/code\u003e, which shows the card header at the bottom, partially overlaying the existing card.\u003c/p\u003e\n"],["\u003cp\u003eThis enum is specifically for cards triggered contextually and has no effect on other types of cards.\u003c/p\u003e\n"],["\u003cp\u003eTo use \u003ccode\u003eDisplayStyle\u003c/code\u003e, you would call it using the syntax \u003ccode\u003eCardService.DisplayStyle.PEEK\u003c/code\u003e or \u003ccode\u003eCardService.DisplayStyle.REPLACE\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum DisplayStyle\n\nDisplayStyle\n\nAn enum that defines the display style of card.\n\n\n`Display``Style.REPLACE` means that the card is shown by replacing the view of top card in\nthe card stack.\n\n\n`Display``Style.PEEK` mean that the header of the card appears at the bottom of the\nsidebar, partially covering the current top card of the stack. Clicking the header pops the card\ninto the card stack. If the card has no header, a generated header is used instead.\n\n\n`Display``Style` only works for card returned from contextual trigger function.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.DisplayStyle.PEEK`. \n\n### Properties\n\n| Property | Type | Description |\n|-----------|--------|-----------------------------------------------------------------------------|\n| `PEEK` | `Enum` | Show the card header at the bottom of add-on content over existing content. |\n| `REPLACE` | `Enum` | Show the card by replacing existing content. |"]]