Dynamic Select Widget

by Gabriel Pendl last modified Feb 16, 2011 02:13 AM

The DynamicSelectWidget is a implementation of the dojo selectbox. A combobox is like a text <input> field (ie, you can input any value you want), but it also has a list of suggested values that you can choose from. The drop down list is filtered by the data you have already typed in. (from http://archive.dojotoolkit.org/nightly/widget/tests/widget/test_Select.html)

Project Description


Get an idea by visiting a 'demo' (http://archive.dojotoolkit.org/nightly/widget/tests/widget/test_Select.html)of the dojo widget itself.


Installation:



Just unpack the tarball, add it to your products directory, restart zope and install (quickinstaller) the package.

Import it into your product:

from Products.DynamicSelect.DynamicSelectWidget import DynamicSelectWidget

Use it in your Schema:

StringField(
name='TestField',
widget=DynamicSelectWidget(
width="300px",
label="Test",
description="just a test",
) ,
vocabulary=DisplayList((
('at', u'Austria'),
('gr', u'Greece'),
('de', u'Germany'),
('it', u'Italy'),
)),
required=1
),

width: a style defenition of the widgets width in px.

Current Release

No stable release available yet.

All Releases

Version Released Description Compatibility Status
0.8 Oct 12, 2007 some fixes More about this release… release-candidate

Comments (0)