From d0c9c0dbab0f3ed07d7ea08590e7c19b52bc4ffe Mon Sep 17 00:00:00 2001 From: Bjverde Date: Sat, 29 Feb 2020 21:01:38 -0300 Subject: [PATCH] :memo: APP #216 melhorando exemplo --- .../tree/exe_tree_view_8_multiple_levels.php | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/appexemplo_v1.0/modulos/tree/exe_tree_view_8_multiple_levels.php b/appexemplo_v1.0/modulos/tree/exe_tree_view_8_multiple_levels.php index 8c872f27..e3fc5db4 100644 --- a/appexemplo_v1.0/modulos/tree/exe_tree_view_8_multiple_levels.php +++ b/appexemplo_v1.0/modulos/tree/exe_tree_view_8_multiple_levels.php @@ -322,8 +322,34 @@ function selectMenu() { $frm->addGroupField('gpTree','Menus em Treeview')->setcloseble(true); $userData = array('IDMENU_PAI','NOM_MENU','URL','TOOLTIP','IMG_MENU','IMGDISABLED','DISSABLED','HOTKEY','BOOLSEPARATOR','JSONPARAMS','SIT_ATIVO','DAT_INCLUSAO','DAT_UPDATE'); -$tree = $frm->addTreeField('tree',null,$dados,'IDMENU_PAI',$primaryKey,'NOM_MENU',null, $userData); -$tree->setStartExpanded(true); +$tree = $frm->addTreeField('tree' + ,null + ,$dados + ,'IDMENU_PAI' + ,$primaryKey + ,'NOM_MENU' + ,null + ,$userData + ,null + ,null + ,null + ,null + ,null + ,null + ,null + ,null + ,null + ,null + ,null + ,null + ,null + ,null + ,null + ,null + ,false + ); +//$tree->setStartExpanded(false); +//$tree->setStartExpanded(true); $tree->setOnClick('treeClick'); // fefinir o evento que ser? chamado ao clicar no item da treeview $frm->closeGroup();