গবেষণা সমীক্ষা: ব্লকলি
স্টার্ট সার্ভে নিয়ে আপনার অভিজ্ঞতা সম্পর্কে আমাদের বলুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ব্লকলি > ব্লক রেন্ডারিং > পাথঅবজেক্ট > সেটক্লাস_
blockRendering.PathObject.setClass_() পদ্ধতি
পাথ অবজেক্টের রুট SVG এলিমেন্টে প্রদত্ত CSS ক্লাস যোগ করুন বা সরান।
স্বাক্ষর:
protected setClass_(className: string, add: boolean): void;
পরামিতি
প্যারামিটার | টাইপ | বর্ণনা |
---|
ক্লাসের নাম | স্ট্রিং | ক্লাসের নাম যোগ করা বা অপসারণ করা |
যোগ করুন | বুলিয়ান | সত্য যদি ক্লাস যোগ করা উচিত. মিথ্যা যদি এটি অপসারণ করা উচিত. |
রিটার্ন:
অকার্যকর
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-11-12 UTC-তে শেষবার আপডেট করা হয়েছে।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2024-11-12 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["The `blockRendering.PathObject.setClass_()` method allows you to dynamically add or remove CSS classes on a path object's root SVG element."],["This method accepts two parameters: `className` (string) specifying the class name and `add` (boolean) indicating whether to add or remove the class."],["Utilizing this method enables you to control the styling and appearance of path objects within Blockly's block rendering system."]]],["The `setClass_()` method of the `PathObject` in the `blockRendering` namespace adds or removes a CSS class on the root SVG element. It takes two parameters: `className` (the class name) and `add` (a boolean indicating whether to add or remove the class). If `add` is true, the class is added; if false, it's removed. This method returns void.\n"]]