Stay organized with collections
Save and categorize content based on your preferences.
blockly > icons > MutatorIcon
icons.MutatorIcon class
An icon that allows the user to change the shape of the block.
For example, it could be used to add additional fields or inputs to the block.
Signature:
export declare class MutatorIcon extends Icon implements IHasBubble
Extends: Icon
Implements: IHasBubble
Constructors
Properties
Property |
Modifiers |
Type |
Description |
sourceBlock |
protected
readonly
|
BlockSvg |
|
TYPE |
static
readonly
|
IconType<MutatorIcon> |
The type string used to identify this icon. |
WEIGHT |
static
readonly
|
(not declared) |
The weight this icon has relative to other icons. Icons with more positive weight values are rendered farther toward the end of the block. |
Methods
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."],[[["The `MutatorIcon` class in Blockly is an icon that allows users to modify the shape of a block, such as adding fields or inputs."],["It extends the `Icon` class and implements the `IHasBubble` interface, providing functionality for displaying and managing a bubble."],["`MutatorIcon` includes properties like `sourceBlock`, `TYPE`, and `WEIGHT`, and methods like `applyColour`, `dispose`, and `onClick` for managing its appearance and behavior."],["This icon is specifically designed for use with mutator blocks, which are blocks that allow for more complex or customizable structures within Blockly workspaces."]]],[]]