Nav: Allow to collapse tree nodes with NavLeft and open them with NavRight (#787, #1079)

This commit is contained in:
omar
2017-09-30 00:47:07 +02:00
parent ecd72cc0c7
commit 0046c618b0
2 changed files with 24 additions and 7 deletions

View File

@ -456,9 +456,9 @@ void ImGui::ShowTestWindow(bool* p_open)
if (ImGui::TreeNode("Collapsing Headers"))
{
static bool closable_group = true;
ImGui::Checkbox("Enable extra group", &closable_group);
if (ImGui::CollapsingHeader("Header"))
{
ImGui::Checkbox("Enable extra group", &closable_group);
for (int i = 0; i < 5; i++)
ImGui::Text("Some content %d", i);
}