blockly > icons > CommentIcon > WEIGHT
The weight this icon has relative to other icons. Icons with more positive weight values are rendered farther toward the end of the block.
Signature:
static readonly WEIGHT = 3;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["`icons.CommentIcon.WEIGHT` is a static read-only property that determines the relative rendering position of the comment icon on a block."],["This property has a value of 3, indicating that the comment icon is rendered towards the end of the block, after icons with lower weight values."]]],["The `CommentIcon.WEIGHT` property determines an icon's rendering position relative to other icons on a block. It's a static, read-only property set to a value of 3. Higher positive `WEIGHT` values result in the icon being placed further towards the end of the block during rendering. This property is used to manage icon layout and prioritization on a block.\n"]]