blockly > blockRendering > PathObject > updateDisabled_
متد blockRendering.PathObject.updateDisabled_().
ظاهر بلوک را برای انعکاس وضعیت غیرفعال به روز می کند.
امضا:
protected updateDisabled_(disabled: boolean): void;
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
از کار افتاده است | بولی | اگر غیرفعال باشد درست است. |
برمیگرداند:
باطل
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-10-27 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-10-27 بهوقت ساعت هماهنگ جهانی."],[[["The `updateDisabled_` method is used to visually represent the disabled state of a block within Blockly's rendering system."],["It takes a boolean parameter indicating whether the block should appear disabled (`true`) or enabled (`false`)."],["By calling this method with the appropriate disabled state, developers can ensure that the block's visual appearance accurately reflects its functionality."]]],["The `updateDisabled_()` method, part of the `PathObject` class within the `blockRendering` namespace, modifies a block's visual appearance to indicate a disabled state. It accepts a single boolean parameter, `disabled`. If `disabled` is true, the method visually updates the block to reflect that it is disabled. It returns nothing.\n"]]