blockly > Motyw > getComponentStyle
Metoda Theme.getKomponentStyle()
Pobiera styl danego komponentu UI Blockly. Jeśli wartością stylu jest ciąg znaków, staramy się znaleźć wartość wszystkich nazwanych odwołań.
Podpis:
getComponentStyle(componentName: string): string | null;
Parametry
Parametr |
Typ |
Opis |
componentName |
ciąg znaków |
Nazwa komponentu. |
Zwroty:
ciąg znaków | wartość null
Wartość stylu.
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-10-15 UTC.
[null,null,["Ostatnia aktualizacja: 2024-10-15 UTC."],[[["The `getComponentStyle` method retrieves the style for a specific Blockly UI component based on its name."],["It handles style values that are strings, attempting to resolve any named references within them."],["If a style is found for the given component name, it's returned; otherwise, `null` is returned."]]],[]]