MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / addPseudoClass

Function addPseudoClass

packages/core/ui/core/view-base/index.ts:861–869  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

859 */
860 @profile
861 public addPseudoClass(name: string): void {
862 const allStates = this.getAllAliasedStates(name);
863 for (let i = 0, length = allStates.length; i < length; i++) {
864 if (!this.cssPseudoClasses.has(allStates[i])) {
865 this.cssPseudoClasses.add(allStates[i]);
866 this.notifyPseudoClassChanged(allStates[i]);
867 }
868 }
869 }
870
871 /**
872 * @protected

Callers

nothing calls this directly

Calls 1

addMethod · 0.65

Tested by

no test coverage detected