יצירת קלט מותאם אישית
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
כדי ליצור קלט מותאם אישית, צריך ליצור מחלקה משנית Input, או אחת מהאפשרויות
למחלקות המשנה שלו.
classMyInputextendsBlockly.inputs.Input{// The constructor should always take in a name and a block to be compatible// with JSON block definitions.constructor(name,block){super(name,block);// etc...}}
אפשר ליצור חיבור
אם אתם רוצים שהקלט שלכם יהיה מחובר, צריך ליצור אותו
constructor, על ידי קריאה לשיטה makeConnection.
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[],["To create a custom input, subclass the `Input` class, including a constructor that accepts a name and block. Optionally, create a connection within the constructor using the `makeConnection` method. To use the custom input in JSON block definitions, register it with `Blockly.registry.register`, associating it with a unique string. Note that unlike custom fields, built-in inputs cannot be overridden and do not accept custom JSON configurations.\n"]]