close

fun close(panel: DockPanel)(source)

Closes panel when it is DockPanel.closable: takes it out of its group, and the group out of the layout when it is empty, or out of its window, which closes. The panel and its content are kept, neither laid out nor drawn, until open brings it back where it was.