Loading...
Loading...
Error
Oops! Something went wrong
6. Vue Component Prop and Event Validation
Speed
Speed
Quality
Quality
Captions
Captions
media loading
Play
Pause
10
Seek backward
Rewind 10s
Play
Pause
Play
Play
Pause
Pause
20
Seek forward
Forward 20s
Mute
Unmute
Volume High
Volume Low
Volume Low
Mute
Mute
Unmute
0:00
0:00
Start casting
Stop casting
Chapters
Chapters
Introduction to Validators for Props and Custom Events
00:00
Demonstrating Prop Validators
00:18
Implementing a Prop Validator Function
00:22
Return True or False for Prop Validity
00:35
Example: Prop Must Start with 'the'
00:47
Shortening the Validator Function
01:06
Testing Invalid Prop Validation
01:37
Observing Invalid Prop Warning in Console
01:44
Custom Validation for Custom Events
02:05
Defining Emits as an Object for Validation
02:10
Implementing an Event Validator Function
02:24
Return True or False for Event Payload Validity
02:32
Example: Event Payload Must Be a String
02:39
Testing Invalid Event Payload
02:55
Observing Invalid Event Warning in Console
03:10
Testing Valid Event Payload
03:21
Disabling Validation for Specific Events
03:33
Using Null for No Event Validator
03:45
Enable captions
Disable captions
Enable Captions
Enable captions
Disable Captions
Disable captions
Settings
Settings
Settings
Enter fullscreen mode
Exit fullscreen mode
Fullscreen
Enter fullscreen
Exit Fullscreen
Exit fullscreen