Unfortunately, the context menu doesn't support a search box or custom elements.
To select a user from a long list you can use a dialog created using DayPilot Moal which supports a searchable list:
import {Modal} from '@daypilot/modal';
// ...
const form = [
{
type: 'searchable',
id: 'user',
name: 'User',
options: [
{
name: 'User 1',
id: 'user1',
},
{
name: 'User 2',
id: 'user2',
},
],
},
];
const data = {};
Modal.form(form, data).then(modal => {
console.log(modal.result);
});