Why use attribute to do what event is supposed to do? For example, like the on-success property of the component upload, why not use events?

when looking at the upload component upload, I am very confused about why uploads like on-success successfully trigger events. Instead, I use attribute,. I understand that attribute should pass parameters instead of doing what events should do. Is there any consideration here?

clipboard.png

Dec.05,2021

on-success is just an event that is encapsulated as a hook function.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36c19-4d6d9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36c19-4d6d9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?