تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تُستخدَم لضبط قيمة سمة معيّنة. يُظهر هذا الإجراء خطأ إذا كان المفتاح المقدَّم غير متوافق مع العنصر. اطّلِع على مَعلمات الدالة الإنشائية لمعرفة المواقع التي يمكن ضبطها.
تعرض هذه الدالة ui.data.ActiveDictionary.
الاستخدام
المرتجعات
DrawingTools.set(keyOrDict, value)
ui.data.ActiveDictionary
الوسيطة
النوع
التفاصيل
هذا: ui.data.activedictionary
ui.data.ActiveDictionary
مثيل ui.data.ActiveDictionary
keyOrDict
Object|String
إما مفتاح السمة المطلوب ضبطها أو قاموس لأزواج المفتاح/القيمة المطلوب ضبطها على العنصر.
value
الكائن، اختياري
القيمة الجديدة للسمة يكون ذلك مطلوبًا عندما تكون الوسيطة الأولى عبارة عن سلسلة مفاتيح.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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"]],["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Sets the value of a specified property within a ui.data.ActiveDictionary object."],["Throws an error if the provided key is not a supported property, refer to the constructor parameters for valid properties."],["Accepts either a single key-value pair or a dictionary of key-value pairs to modify the object's properties."],["Returns the updated ui.data.ActiveDictionary instance, enabling method chaining."]]],["The `set` method of `ui.data.ActiveDictionary` modifies object properties. It accepts either a `keyOrDict` (string or object) and optionally a `value`. If `keyOrDict` is a string, `value` is mandatory, representing the new property value. If `keyOrDict` is an object it is a dictionary containing key/value pairs that will be applied to the object. Invalid keys trigger an error. It returns the modified `ui.data.ActiveDictionary` instance.\n"]]