Encuesta de investigación: Cuéntanos sobre tu experiencia con Blockly
Comenzar encuesta
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
blockly > blockRendering > IPathObject > updateSelected
Método blockRendering.IPathObject.updateSelected()
Agrega o quita un diseño que muestre que se seleccionó un bloque.
Signature:
updateSelected(enabled: boolean): void;
Parámetros
Parámetro |
Tipo |
Descripción |
habilitado |
boolean |
|
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)
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2024-08-21 (UTC)"],[[["The `updateSelected` method is used to visually indicate whether a block is selected or not by applying or removing styling."],["It takes a single boolean parameter, `enabled`, which determines if the selected styling should be applied (`true`) or removed (`false`)."],["This method is part of the `IPathObject` interface within the `blockRendering` namespace in Blockly."]]],["The `updateSelected` method, part of the `IPathObject` interface, modifies a block's styling to indicate whether it is selected or not. It takes a single boolean parameter, `enabled`. If `enabled` is true, styling to show selection is added; if false, selection styling is removed. The method returns nothing. This is used to update the visual state of blocks within a block rendering system.\n"]]