From 241eb9da66d5f98da0583195570a04b3470dbe81 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 4 Nov 2024 16:49:06 +0100 Subject: [PATCH] CustomVarTable: Let the user fully collapse subgroups resolves #1053 --- library/Icingadb/Widget/Detail/CustomVarTable.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/Icingadb/Widget/Detail/CustomVarTable.php b/library/Icingadb/Widget/Detail/CustomVarTable.php index 9d6916b34..0aac95c64 100644 --- a/library/Icingadb/Widget/Detail/CustomVarTable.php +++ b/library/Icingadb/Widget/Detail/CustomVarTable.php @@ -220,7 +220,8 @@ protected function assemble() if ($this->headerTitle !== null) { $this->getAttributes() ->add('class', 'collapsible') - ->add('data-visible-height', 100) + ->add('data-visible-height', 0) + ->add('data-state-collapses', true) ->add('data-toggle-element', 'thead') ->add( 'id',