Class TimePicker
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
সময় চয়নকারী একটি ইনপুট ক্ষেত্র যা ব্যবহারকারীদের একটি সময় ইনপুট করতে দেয়।
Google Workspace অ্যাড-অন এবং Google Chat অ্যাপের জন্য উপলভ্য।
const dateTimePicker =
CardService.newTimePicker()
.setTitle('Enter the time.')
.setFieldName('time_field')
// Set default value as 3:30 AM.
.setHours(3)
.setMinutes(30)
.setOnChangeAction(
CardService.newAction().setFunctionName('handleDateTimeChange'),
);
বিস্তারিত ডকুমেন্টেশন
set Field Name(fieldName)
ফিল্ডের নাম সেট করে যা ইভেন্ট অবজেক্টে এই বাছাইকারীকে সনাক্ত করে যা একটি UI ইন্টারঅ্যাকশনের সময় তৈরি হয়। ক্ষেত্রের নাম ব্যবহারকারীর কাছে দৃশ্যমান। প্রয়োজনীয়; নির্দিষ্ট ক্ষেত্রের নাম অনন্য হতে হবে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
field Name | String | এই ইনপুটে বরাদ্দ করার নাম। |
প্রত্যাবর্তন
Time Picker
— এই পিকার, চেইনিংয়ের জন্য।
set Hours(hours)
ইনপুট ক্ষেত্রে সেট করার জন্য প্রিফিল করা ঘন্টার মান সেট করে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
hours | Integer | ইনপুটে স্থাপন করা ডিফল্ট ঘন্টার মান, 0 থেকে 23 পর্যন্ত। এটি সর্বদা ফর্ম কলব্যাক প্যারামিটারে একটি স্ট্রিং হিসাবে উপস্থাপিত হয়। |
প্রত্যাবর্তন
Time Picker
— এই পিকার, চেইনিংয়ের জন্য।
set Minutes(minutes)
ইনপুট ক্ষেত্রে সেট করার জন্য প্রিফিল করা মিনিটের মান সেট করে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
minutes | Integer | ইনপুটে রাখা ডিফল্ট মিনিটের মান, 0 থেকে 59 পর্যন্ত। এটি সর্বদা ফর্ম কলব্যাক প্যারামিটারে একটি স্ট্রিং হিসাবে উপস্থাপন করা হয়। |
প্রত্যাবর্তন
Time Picker
— এই পিকার, চেইনিংয়ের জন্য।
set On Change Action(action)
একটি Action
সেট করে যা স্ক্রিপ্টটি সম্পাদন করে যখনই পিকার ইনপুট পরিবর্তন হয়।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
action | Action | পদক্ষেপ নিতে হবে। |
প্রত্যাবর্তন
Time Picker
— এই পিকার, চেইনিংয়ের জন্য।
set Title(title)
ইনপুট ক্ষেত্রের উপরে প্রদর্শিত শিরোনাম সেট করে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
title | String | ইনপুট ক্ষেত্রের শিরোনাম। |
প্রত্যাবর্তন
Time Picker
— এই পিকার, চেইনিংয়ের জন্য।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট 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\u003eTimePicker is an input field that allows users to input a time, available for Google Workspace Add-ons and Google Chat apps.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can prefill the TimePicker with a default time using \u003ccode\u003esetHours\u003c/code\u003e and \u003ccode\u003esetMinutes\u003c/code\u003e, and set a title using \u003ccode\u003esetTitle\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003esetFieldName\u003c/code\u003e assigns a unique identifier for the picker, used in event objects for UI interactions.\u003c/p\u003e\n"],["\u003cp\u003eAn \u003ccode\u003eOnChangeAction\u003c/code\u003e can be set to trigger a specific script function whenever the picker's input value is modified.\u003c/p\u003e\n"]]],[],null,["# Class TimePicker\n\nTimePicker\n\nAn input field that allows users to input a time.\n\nAvailable for Google Workspace add-ons and Google Chat apps.\n\n```javascript\nconst dateTimePicker =\n CardService.newTimePicker()\n .setTitle('Enter the time.')\n .setFieldName('time_field')\n // Set default value as 3:30 AM.\n .setHours(3)\n .setMinutes(30)\n .setOnChangeAction(\n CardService.newAction().setFunctionName('handleDateTimeChange'),\n );\n``` \n\n### Methods\n\n| Method | Return type | Brief description |\n|---------------------------------------------------------|-----------------|--------------------------------------------------------------------------------------------------------------------------|\n| [setFieldName(fieldName)](#setFieldName(String)) | [TimePicker](#) | Sets the field name that identifies this picker in the event object that is generated when there is a UI interaction. |\n| [setHours(hours)](#setHours(Integer)) | [TimePicker](#) | Sets the prefilled hours value to set in the input field. |\n| [setMinutes(minutes)](#setMinutes(Integer)) | [TimePicker](#) | Sets the prefilled minutes value to set in the input field. |\n| [setOnChangeAction(action)](#setOnChangeAction(Action)) | [TimePicker](#) | Sets an [Action](/apps-script/reference/card-service/action) that the script performs whenever the picker input changes. |\n| [setTitle(title)](#setTitle(String)) | [TimePicker](#) | Sets the title displayed above the input field. |\n\nDetailed documentation\n----------------------\n\n### `set``Field``Name(fieldName)`\n\nSets the field name that identifies this picker in the event object that is generated when\nthere is a UI interaction. The field name is visible to the user. Required; the specified field\nname must be unique.\n\n#### Parameters\n\n| Name | Type | Description |\n|---------------|----------|-----------------------------------|\n| `field``Name` | `String` | The name to assign to this input. |\n\n#### Return\n\n\n[TimePicker](#) --- This picker, for chaining.\n\n*** ** * ** ***\n\n### `set``Hours(hours)`\n\nSets the prefilled hours value to set in the input field.\n\n#### Parameters\n\n| Name | Type | Description |\n|---------|-----------|---------------------------------------------------------------------------------------------------------------------------------------|\n| `hours` | `Integer` | The default hour value placed in the input, range from 0 to 23. It is always represented as a string in the form callback parameters. |\n\n#### Return\n\n\n[TimePicker](#) --- This picker, for chaining.\n\n*** ** * ** ***\n\n### `set``Minutes(minutes)`\n\nSets the prefilled minutes value to set in the input field.\n\n#### Parameters\n\n| Name | Type | Description |\n|-----------|-----------|------------------------------------------------------------------------------------------------------------------------------------------|\n| `minutes` | `Integer` | The default minutes value placed in the input, range from 0 to 59. It is always represented as a string in the form callback parameters. |\n\n#### Return\n\n\n[TimePicker](#) --- This picker, for chaining.\n\n*** ** * ** ***\n\n### `set``On``Change``Action(action)`\n\nSets an [Action](/apps-script/reference/card-service/action) that the script performs whenever the picker input changes.\n\n#### Parameters\n\n| Name | Type | Description |\n|----------|------------------------------------------------------|---------------------|\n| `action` | [Action](/apps-script/reference/card-service/action) | The action to take. |\n\n#### Return\n\n\n[TimePicker](#) --- This picker, for chaining.\n\n*** ** * ** ***\n\n### `set``Title(title)`\n\nSets the title displayed above the input field.\n\n#### Parameters\n\n| Name | Type | Description |\n|---------|----------|------------------------|\n| `title` | `String` | The input field title. |\n\n#### Return\n\n\n[TimePicker](#) --- This picker, for chaining."]]