Skip to content

Commit

Permalink
📝 APP #216 melhorando exemplo
Browse files Browse the repository at this point in the history
  • Loading branch information
bjverde committed Mar 1, 2020
1 parent 8a2ee1f commit d0c9c0d
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions appexemplo_v1.0/modulos/tree/exe_tree_view_8_multiple_levels.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit d0c9c0d

Please sign in to comment.