Development

Changeset 33219

You must first sign up to be able to contribute.

Changeset 33219

Show
Ignore:
Timestamp:
11/22/11 15:03:00 (2 years ago)
Author:
chrodriguez
Message:

add support for theme as option

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/dcReloadedFormExtraPlugin/trunk/lib/widget/crWidgetFormJsTree.class.php

    r33209 r33219  
    7878    $this->addOption('prefix_tree_node_id', 'change_me'); 
    7979    $this->addOption('show_value_callback', false); 
     80    $this->addOption('theme', 'classic'); 
    8081  } 
    8182 
     
    182183    $core = $this->getCoreOptions($value); 
    183184    $plugins = $this->getOption('tree_plugins'); 
    184     return strtr("{core: %core%, plugins: %plugins%, json_data: %tree% , themes: { dots: %dots%, icons: %icons% }, ui: { select_limit: 1, initially_select: [ '%value%' ], selected_parent_close: false, selected_parent_open: false }, types: { types:  %types%  } }",array( 
     185    return strtr("{core: %core%, plugins: %plugins%, json_data: %tree% , themes: { theme : '%theme%', dots: %dots%, icons: %icons% }, ui: { select_limit: 1, initially_select: [ '%value%' ], selected_parent_close: false, selected_parent_open: false }, types: { types:  %types%  } }",array( 
    185186      '%core%'    => $this->toJson($core), 
    186187      '%plugins%' => empty($plugins)?'[ ]':$plugins, 
     
    190191      '%value%'   => $this->generateNodeId($value),  
    191192      '%types%'   => $this->getJsTreeTypeOptions(), 
     193      '%theme%'   => $this->getOption('theme'), 
    192194    )); 
    193195  }