Custom acknowledge button?

Hello, is there any script for an Alarm Status Table to make a custom button to acknowledge the alarms that show up in that component?
I mean, that custom button is external to that component

We use below as part of a larger alarm system but you should be able to modify it to fit.
Replace TagRoot with a folder path that contains your alarm tags.

results = system.alarm.queryStatus(state=[‘ActiveUnacked’],source=[’’+TagRoot+’’])
for item in results:
eventID = “%s” % (item.getId())
system.alarm.acknowledge([eventID], None)