MCPcopy Create free account
hub / github.com/NativeScript/sample-Groceries / toggleDisplay

Method toggleDisplay

app/login/login.component.ts:123–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121 }
122
123 toggleDisplay() {
124 this.isLoggingIn = !this.isLoggingIn;
125 let mainContainer = <View>this.mainContainer.nativeElement;
126 mainContainer.animate({
127 backgroundColor: this.isLoggingIn ? new Color("white") : new Color("#301217"),
128 duration: 200
129 });
130 }
131
132 startBackgroundAnimation(background) {
133 background.animate({

Callers 1

signUpMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected