Stay organized with collections
Save and categorize content based on your preferences.
blockly > IStyleable
IStyleable interface
Interface for an object that a style can be added to.
Signature:
export interface IStyleable
Methods
Method |
Description |
addStyle(style) |
Adds a style on the toolbox. Usually used to change the cursor. |
removeStyle(style) |
Removes a style from the toolbox. Usually used to change the cursor. |
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 `IStyleable` interface defines objects that can have styles applied to them."],["It includes methods for adding (`addStyle`) and removing (`removeStyle`) styles, primarily used for cursor changes on the toolbox."]]],["The `IStyleable` interface allows objects to have styles added or removed. The `addStyle(style)` method applies a specified style, commonly used for cursor changes. Conversely, the `removeStyle(style)` method eliminates a given style from the object, also typically affecting the cursor. This interface provides functionality for dynamically managing the visual appearance of elements.\n"]]