blockly > IStyleable > addStyle
IStyleable.addStyle() method
Adds a style on the toolbox. Usually used to change the cursor.
Signature:
addStyle(style: string): void;
Parameters
Parameter |
Type |
Description |
style |
string |
The name of the class to add. |
Returns:
void
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."],[[["The `addStyle` method is used to apply a style, typically for cursor changes, within the toolbox."],["It accepts a single argument, `style`, which is a string representing the name of the CSS class to add."],["The method does not return any value (`void`)."]]],[]]