doc: update closebutton

This commit is contained in:
Qingping Hou
2016-02-15 23:21:36 -08:00
parent e422842256
commit 87c28a72cf

View File

@@ -3,7 +3,8 @@ Button widget that shows an "×" and handles closing window when tapped
Example:
local parent_widget = HorizontalGroup:new{}
local CloseButton = require("ui/widget/closebutton")
local parent_widget = OverlapGroup:new{}
table.insert(parent_widget, CloseButton:new{
window = parent_widget,
})