blockly > Block > data
ویژگی Block.data
دادههای متنی اختیاری که بین بلوکها و XML رفت و آمد میکنند. تاثیری ندارد. ممکن است توسط اشخاص ثالث برای اطلاعات متا استفاده شود.
امضا:
data: string | null;
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی."],[[["`data` is an optional property on Blockly blocks used to store arbitrary text data."],["This data is preserved when blocks are converted to and from XML, allowing for persistence."],["`data` has no inherent functionality within Blockly itself and is primarily intended for use by external tools or extensions."],["It can be used to store metadata, custom configurations, or any other information relevant to a specific block."]]],["The `Block.data` property is an optional string or null value associated with a block. It allows for storing text data that persists during XML serialization and deserialization. This property has no internal effect within the system, and it serves as a metadata container for external use by third-party developers. It enables additional information to be associated with blocks without impacting the core functionality.\n"]]