Fork me on GitHub

chosen

HarvestHQ Chosen widget in single selection mode.

vocab = sorted((u'Weißburgunder', u'Welschriesling',
                u'Sauvingnon Blanc', u'Sämling', u'Scheurebe',
                u'Traminer', u'Morrilon', u'Muskateller'))

chosen = factory('#field:chosen', props={
    'label': 'Select some items',
    'required': 'Selection is required',
    'vocabulary': vocab,
    'multivalued': False,
})

HarvestHQ Chosen widget in multi selection mode.

chosen = factory('#field:chosen', props={
    'label': 'Select some items',
    'required': 'Selection is required',
    'vocabulary': vocab,
    'multivalued': True,
})

HarvestHQ Chosen widget in multi selection, allow new values and search substrings mode. This one can be used as an autocomplete widget.

chosen = factory('#field:chosen', props={
    'label': 'Select some items',
    'required': 'Selection is required',
    'vocabulary': vocab,
    'multivalued': True,
    'search_contains': True,
    'new_values': True,
})