How we can hide Kanban

I want to hide Kanban in my doctype
image

1 Like

Refer this link List

Below is an example

frappe.listview_settings['Leave Request'] = {
    
    onload(listView){
        var userRoles = frappe.user_roles

        if (userRoles.includes('Floor Manager') && !userRoles.includes('Administrator')){
            
            listView.$page.find(`div[class='filter-selector']`).css('display','none')
            listView.$page.find('.custom-actions, .hidden-xs, .hidden-md').css('display','none')

        }
    }
}

I want to hide only Kanban