yafowil.widget.dynatreeTree Selection Widget for YAFOWIL | |
Download |
yafowil.widget.dynatree Ranking & Summary
Advertisement
- License:
- BSD License
- Publisher Name:
- BlueDynamics Alliance
- Publisher web site:
- http://bluedynamics.com
yafowil.widget.dynatree Tags
yafowil.widget.dynatree Description
Tree Selection Widget for YAFOWIL yafowil.widget.dynatree is a tree widgeti for YAFOWIL.The tree-widget for yafowil utilizes the jQuery plugin jquery.dynatree.js (at google-code).Usage:The dynatree widget takes the parameters: * source * selectMode * minExpandLevel * rootVisible * autoCollapse * checkbox'For details read the Dynatree Widget DocumentationExample:sample_tree = { 'animal': ('Animals', { 'mammal': ('Mammals', { 'elephant': ('Elephant', None), 'ape': ('Ape', None), 'horse': ('Horse', None), }), 'bird': ('Birds', { 'duck': ('Duck', None), 'swan': ('Swan', None), 'turkey': ('Turkey', None), 'hummingbird': ('Hummingbird', None), }),})}form = factory('dynatree', props={ 'value': , 'source': sample_tree,)Example ApplicationTo run the example application and tests coming with this package run bootstrap (Python 2.6 or 2.7) with a buildout like so:parts = gunicornrecipe = zc.recipe.testrunnereggs = yafowil.widget.dynatreerecipe = zc.recipe.egg:scriptseggs = ${test:eggs} gunicornStart the application with:./bin/gunicorn yafowil.widget.dynatree.example:appand connect with your webbrowser to http://localhost:8000/Run the tests with:./bin/tests Requirements: · Python What's New in This Release: · upgrade jquery.dynatree javascript resources to v1.0.3 · js event trigger onSelect
yafowil.widget.dynatree Related Software