Encuesta de investigación: Cuéntanos sobre tu experiencia con Blockly
Comenzar encuesta
blockly > blockRendering > PathObject > updateHighlighted
Método blockRendering.PathObject.updateHighlighted()
Establece si el bloque muestra un elemento destacado o no. El resaltado de bloques se suele usar para marcar visualmente los bloques que se están ejecutando en el momento.
Signature:
updateHighlighted(enable: boolean): void;
Parámetros
Parámetro |
Tipo |
Descripción |
habilitar |
boolean |
Verdadero si se destaca. |
Muestra:
void
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2024-08-21 (UTC)
[null,null,["Última actualización: 2024-08-21 (UTC)"],[[["The `blockRendering.PathObject.updateHighlighted()` method controls the visual highlighting of a block, often used to indicate execution."],["This method accepts a boolean parameter, `enable`, to turn highlighting on (true) or off (false)."],["Calling `updateHighlighted()` with the appropriate boolean value will visually update the block to reflect its highlighted or non-highlighted state."]]],["The `updateHighlighted` method in `blockRendering.PathObject` controls a block's highlight state. It takes a boolean parameter, `enable`. When `enable` is set to `true`, the block is visually highlighted, commonly indicating execution. When `enable` is `false`, the highlight is removed. The method does not return a value. This highlighting feature is used to show a visual marker for the active or executed blocks.\n"]]