MCPcopy Create free account
hub / github.com/cssinjs/jss / createChangeFunction

Method createChangeFunction

examples/angular5/app/app.component.ts:86–95  ·  view source on GitHub ↗
(sheet: sheet, color: string)

Source from the content-addressed store, hash-verified

84 }
85
86 private createChangeFunction(sheet: sheet, color: string): (event: Event) => void {
87 return (event: Event) => {
88 event.stopPropagation()
89 event.preventDefault()
90
91 sheet.update({
92 area: {backgroundColor: color}
93 })
94 }
95 }
96}
97
98interface sheet {

Callers 1

ngOnInitMethod · 0.95

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected