blockly > Block > setHelpUrl
طريقة Block.setHelpUrl()
حدِّد عنوان URL لصفحة مساعدة هذه الكتلة.
Signature:
setHelpUrl(url: string | Function): void;
المعلمات
المَعلمة |
النوع |
الوصف |
url |
سلسلة | دالة |
سلسلة عنوان URL للحصول على مساعدة بشأن الحظر أو وظيفة تعرض عنوان URL القيمة Null للإشارة إلى عدم توفّر مساعدة. |
المرتجعات:
غير صالح
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-11-08 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-11-08 (حسب التوقيت العالمي المتفَّق عليه)"],[[["The `setHelpUrl` method allows you to assign a help URL to a Blockly block, providing users with additional information or guidance."],["You can provide a URL string directly or use a function that returns a URL string to dynamically generate the help URL."],["Setting the URL to null will effectively remove any existing help link for that specific block."]]],["The `Block.setHelpUrl()` method sets the help page URL for a block. It accepts a `url` parameter, which can be either a string representing the URL or a function that returns a URL. Passing `null` disables the help link. The method's return type is void, meaning it does not return any value. The primary action is assigning a help URL to a block for user guidance.\n"]]