File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ export function onToggleTest(args){
33
33
34
34
export function onTapTest ( args ) {
35
35
console . log ( "tap event test" ) ;
36
- model . updateMessage ( ) ;
36
+ let box = < CheckBox > args . object ;
37
+ model . updateMessage ( box . checked ) ;
37
38
}
38
39
39
40
export function onDumpModel ( args : any ) {
Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ export class HelloWorldModel extends Observable {
40
40
this . notifyPropertyChange ( "state" , value ) ;
41
41
}
42
42
43
- public updateMessage ( ) {
43
+ public updateMessage ( state ) {
44
44
this . _eventCount ++ ;
45
- this . eventLabel = "Triggered " + this . _eventCount + " times" ;
45
+ this . eventLabel = "Triggered " + this . _eventCount + " times, current state:" + state ;
46
46
}
47
47
48
48
}
You can’t perform that action at this time.
0 commit comments