There is an employee application which assigns multiple roles to a department and multiple department to an employee on single click. There is a demo of editable table also in the application.