Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
blockly > blockRendering > ConstantProvider > getCSS_
Méthode blockRendering.ConstantProvider.getCSS_()
Récupérez tout CSS spécifique au moteur de rendu à injecter lorsque celui-ci est initialisé.
Signature :
protected getCSS_(selector: string): string[];
Paramètres
Paramètre |
Type |
Description |
selector |
chaîne |
Sélecteur CSS à utiliser. |
Renvoie :
chaîne[]
Tableau de chaînes CSS.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/11/09 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 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"]]