TreeItem:show() method


Ensures that the TreeItem is visible, expanding the parent item or scrolling the Tree, if necessary.

Return value

This function returns no value.

Example

local ui = require "ui" local win = ui.Window("TreeItem:add() sample", 320, 220) local tree = ui.Tree(win, {}, 60, 40, 200, 160) for i=1,100 do tree:add(i) end ui.Button(win, "Show Item '51'", 106, 10).onClick = function (self) tree.items["51"]:show() end win:show() while win.visible do ui.update() end