Stay organized with collections
Save and categorize content based on your preferences.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003e\u003ccode\u003eicons.CommentIcon.WEIGHT\u003c/code\u003e is a static read-only property that determines the relative rendering position of the comment icon on a block.\u003c/p\u003e\n"],["\u003cp\u003eThis 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.\u003c/p\u003e\n"]]],["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"],null,["[blockly](./blockly.md) \\\u003e [icons](./blockly.icons_namespace.md) \\\u003e [CommentIcon](./blockly.icons_namespace.commenticon_class.md) \\\u003e [WEIGHT](./blockly.icons_namespace.commenticon_class.weight_property.md)\n\nicons.CommentIcon.WEIGHT property\n---------------------------------\n\nThe weight this icon has relative to other icons. Icons with more positive weight values are rendered farther toward the end of the block.\n\n**Signature:** \n\n static readonly WEIGHT = 3;"]]