Stay organized with collections
Save and categorize content based on your preferences.
blockly > Css > register
Css.register() function
Add some CSS to the blob that will be injected later. Allows optional components such as fields and the toolbox to store separate CSS.
Signature:
export declare function register(cssContent: string): void;
Parameters
Parameter |
Type |
Description |
cssContent |
string |
Multiline CSS string or an array of single lines of CSS. |
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.
[[["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 `Blockly.Css.register()` function adds CSS to a central repository for later injection into the webpage."],["This function allows various Blockly components, like fields and the toolbox, to define and store their individual CSS styles."],["It accepts either a multiline CSS string or an array of individual CSS lines as input."]]],["The `Css.register()` function adds CSS content to be injected later. It enables components like fields and the toolbox to store their CSS separately. The function accepts a string parameter, `cssContent`, which can be a multiline CSS string or an array of single CSS lines. The function's return type is void, indicating it doesn't return any value.\n"]]