User Onload hook in kanban view via client script

can I use onload hook with kanban in listview. after looking everywhere I could not find the settings.

please if anyone knows I will be grateful for your help

Thank you in Advance

Never mind this is how it works by adding the following code in client script

var parent=frappe.views.KanbanView.prototype.setup_view;