Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
blockly > blockRendering > ConstantProvider > getCSS_
Metodo blockRendering.ConstantProvider.getCSS_()
Ottieni qualsiasi CSS specifico del renderer da inserire quando il renderer viene inizializzato.
Firma:
protected getCSS_(selector: string): string[];
Parametri
Parametro |
Tipo |
Descrizione |
selector |
stringa |
selettore CSS da utilizzare. |
Restituisce:
stringa[]
Array di stringhe CSS.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-11-09 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2024-11-09 UTC."],[[["The `getCSS_` method, used within the Blockly block rendering process, retrieves renderer-specific CSS for injection during renderer initialization."],["This protected method accepts a CSS selector as input and returns an array of CSS strings corresponding to that selector."]]],["The `getCSS_` method, part of the `blockRendering.ConstantProvider` class, retrieves renderer-specific CSS. It accepts a `selector` string to define the CSS target. It returns an array of CSS strings designed for injection during renderer initialization. This method is protected, indicating its use is within the class or its subclasses for customizing rendering styles. It is used to get any css that the render needs.\n"]]