function item(onclick, text, mode = "all", readOnly = false) {
	return { onclick, text, mode, readOnly };
}
@param {function} onclick function to be called when the item is clicked
@param {string | HTMLElement} text content of the item
@param {'selected'|'all'} mode mode supported by the item
@param {boolean} readOnly whether to show the item in readOnly mode