export const tomSelect = { author: { valueField: "id", searchField: "title", options: [ { id: 1, name: "John Doe", job: "Web designer", src: "images/200x200.png", }, { id: 2, name: "Emilie Watson", job: "Developer", src: "images/200x200.png", }, { id: 3, name: "Nancy Clarke", job: "Software Engineer", src: "images/200x200.png", }, ], placeholder: "Select the author", render: { option: function (data, escape) { return `
avatar
${escape(data.name)} ${escape( data.job )}
`; }, item: function (data, escape) { return ` avatar ${escape(data.name)} `; }, }, }, assignedTodo: { valueField: "id", searchField: "title", options: [ { id: 1, name: "John Doe", job: "Web designer", src: "images/200x200.png", }, { id: 2, name: "Emilie Watson", job: "Developer", src: "images/200x200.png", }, { id: 3, name: "Nancy Clarke", job: "Software Engineer", src: "images/200x200.png", }, ], placeholder: "Select the user", render: { option: function (data, escape) { return `
avatar
${escape(data.name)} ${escape( data.job )}
`; }, item: function (data, escape) { return ` avatar ${escape(data.name)} `; }, }, }, };