Encuesta de investigación: Cuéntanos sobre tu experiencia con Blockly
Comenzar encuesta
blockly > íconos > WarningIcon > PESO
Propiedad icon.WarningIcon.WEIGHT
El peso que tiene este ícono en relación con los demás. Los iconos con valores de peso más positivos se renderizan más cerca del final del bloque.
Signature:
static readonly WEIGHT = 2;
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-09-12 (UTC)
[null,null,["Última actualización: 2024-09-12 (UTC)"],[[["`icons.WarningIcon.WEIGHT` is a static, read-only property that determines the rendering priority of the warning icon relative to other icons on a block."],["The property is assigned a value of 2, indicating that the warning icon has a relatively high weight and will be rendered towards the end of the block, after icons with lower weights."]]],["The `WarningIcon.WEIGHT` property, a static, read-only value, determines the rendering order of icons. It is set to `2`, indicating the relative weight of the warning icon. Icons with higher weight values are rendered towards the end of the block. This property's purpose is to control the visual placement of the warning icon compared to other block icons.\n"]]