با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
blockly > Grid > shouldSnap
متد Grid.shouldSnap().
اینکه آیا بلوک ها باید به شبکه بچسبند یا خیر.
امضا:
shouldSnap(): boolean;
برمی گرداند:
بولی
اگر بلوکها ببندند درست است، در غیر این صورت نادرست است.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-12 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-01-12 بهوقت ساعت هماهنگ جهانی."],[[["`Grid.shouldSnap()` is a method that determines whether or not blocks should snap to the grid."],["This method returns a boolean value (true or false) indicating if snapping is enabled for the grid."]]],["The `Grid.shouldSnap()` method determines if blocks should snap to the grid. It returns a boolean value: `true` if blocks should snap, and `false` if they should not. This method has no input parameters and is used to control the snapping behavior of blocks within the grid.\n"]]