ComboItem.owner readonly

Get the Combobox that owns the ComboItem.

Example

local ui = require "ui" -- create a simple Window local win = ui.Window("ComboItem.owner sample", "fixed", 320, 250) local combo = ui.Combobox(win, {"Item 1", "Item 2", "Item 3"}) function combo:onSelect(item) win:status(item.text.." is selected") assert(item.owner == self) end combo.selected = combo.items[1] win:show() -- update user interface repeat ui.update() until not win.visible