Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > Css > zarejestruj się
Funkcja Css.register()
Dodaj do obiektu blob kod CSS, który zostanie wstrzyknięty później. Zezwala komponentom opcjonalnym, takim jak pola i zestaw narzędzi, na przechowywanie oddzielnych arkuszy CSS.
Podpis:
export declare function register(cssContent: string): void;
Parametry
Parametr |
Typ |
Opis |
cssContent |
ciąg znaków |
Wielowierszowy ciąg znaków CSS lub tablica pojedynczych wierszy CSS. |
Zwroty:
nieważne
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-12 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2024-09-12 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"]]