Crear entradas personalizadas
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Para crear una entrada personalizada, debes subclasificar Input, o una de
sus subclases.
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...}}
Opcionalmente, crear una conexión
Si quieres que tu entrada tenga una conexión, debes crearla en el
llamado al método makeConnection.
[null,null,["Última actualización: 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"]]