blockly > BlockSvg > setMovable
طريقة BlockSvg.setMovable()
يمكنك تحديد ما إذا كان هذا الجزء قابلاً للنقل أم لا.
Signature:
setMovable(movable: boolean): void;
المعلمات
المعلمة |
النوع |
الوصف |
قابل للنقل |
منطقي |
True إذا كان قابلاً للنقل. |
المرتجعات:
فراغ
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-09-11 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-09-11 (حسب التوقيت العالمي المتفَّق عليه)"],[[["The `setMovable` method determines if a BlockSvg object can be moved on the workspace."],["It accepts a single boolean parameter, `movable`, indicating whether the block should be movable (true) or not (false)."],["Calling this method with the appropriate argument updates the block's movability status."]]],["The `setMovable()` method, part of the `BlockSvg` class, determines if a block can be moved. It accepts a single boolean parameter, `movable`. If `movable` is set to `true`, the block becomes movable; otherwise, it is not. The method has no return value, indicated by `void`. The type of `movable` parameter should be a boolean value.\n"]]