228. Allowing the the User to Clear (Cancel) the Form
Jul 22, 2026 00:51
· 1:16
· English
· Whisper Turbo
· 2 གསལ་བཤད་
This transcript expires in ༡༢ ཟླ་ ༡༢ ཚེས་ ༢༠༡༢ 8 ཉིན།
གནས་བརྟན་གྱི་གནས་བཞག་གོང་འཕེལ་བཏང། →
སྟོན་རྐྱངམ་ཅིག་
0:01
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
We already finished resetting.
0:03
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
The clear button is pretty similar to that.
0:06
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
So here I'll add a click listener and I'll execute onClear.
0:11
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
And in the TypeScript file,
0:13
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
I'll now add the onClear method here.
0:17
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
How can we clear our form?
0:19
S…
Speaker 1 (228. Allowing the the User to Clear (Cancel) the Form)
Well,
0:20
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
we already got access to the form because we added here with view
0:25
S…
Speaker 1 (228. Allowing the the User to Clear (Cancel) the Form)
child.
0:25
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
So I can simply call this slform
0:30
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
reset.
0:32
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
And I need to make sure that I also set edit mode back to false.
0:36
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
If it was false before,
0:37
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
it doesn't hurt.
0:38
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
If it wasn't false,
0:40
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
I ensure that we leave it.
0:41
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
So with this now,
0:43
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
if I select the item and I click clear,
0:47
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
we're out of it again.
0:49
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
So I can now add a new one.
0:51
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
And if I'm already adding one,
0:54
S…
Speaker 1 (228. Allowing the the User to Clear (Cancel) the Form)
bananas,
0:56
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
and then I hit clear,
0:57
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
I simply cancel this.
0:59
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
So now I have to start over.
1:01
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
but I can still update the existing ones.
1:04
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
So that is all working as expected.
1:07
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
Now with the clear button added.
1:09
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
In the last step,
1:11
S…
Speaker 2 (228. Allowing the the User to Clear (Cancel) the Form)
I want to make sure that we can delete items we selected here.
ཡིག་སྒྱུར་འདི་ བཅོས་མའི་བློ་རིག་ (སྒྲ་ངོས་འཛིན་བྱེད་པའི་འཕྲུལ་རིག་) གིས་བཟོ་སྟེ་ཡོདཔ་ཨིན། འཛོལ་བ་འབྱུང་སྲིད་པ་ལ་ — གལ་སྲིད་ཁག་ཆེ་བའི་དོན་ལས་ ངོ་མ་གི་སྒྲ་སྐད་དང་འཕྱད་ཞིབ་འབད་དགོཔ་ཨིན། བཅོས་མའི་བློ་རིག་གི་སྲིད་བྱུས་
བཅུད་དོན་
ཡིག་ཆ་འདི་གི་ AI བཅུད་བསྡུ་ཐོན་ནི་གི་དོན་ལས་ བཅུད་བསྡུ་ ཟེར་བའི་བསྒང་འདི་བསྒང་བསྒ
དྲན་ཐོ་བསྡུ་གསོག...
དྲན་ཤེས་ལ་དྲི་བ་དྲིས་ལན་ཞུ།
ཡིག་ཆ་འདི་གི་སྐོར་ལ་དྲི་བ་ཅི་རིགས་ཞུས་ནའང་ བཅོས་མའི་བློ་རིག་གིས་ འབྲེལ་བ་ཡོད་པའི་དོན་ཚན་ཚུ་ འཚོལ་ཞིབ་ དང་ལན་འདེབས་ འབད་འོང་།