Stay organized with collections
Save and categorize content based on your preferences.
blockly > icons > MutatorIcon > WEIGHT
icons.MutatorIcon.WEIGHT property
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 = 1;
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."],[[["`MutatorIcon.WEIGHT` is a static read-only property that determines the rendering order of icons within a block."],["Icons with higher `WEIGHT` values are positioned towards the end of the block, allowing prioritization and visual organization."],["The default `WEIGHT` value for `MutatorIcon` is set to `1`, indicating a moderate priority level."]]],["The `WEIGHT` property within the `MutatorIcon` class determines an icon's rendering position relative to other icons on a block. A higher positive `WEIGHT` value places the icon closer to the block's end. Specifically, the `MutatorIcon.WEIGHT` is a static, read-only property with a value of `1`. This means that, by default, mutator icons will have a weight of 1.\n"]]