None
@view_config(
renderer="templates/form.pt", name="select2_with_tags_and_multiple"
)
@demonstrate("Select2 Widget (with tags and multiple)")
def select2_with_tags_and_multiple(self):
choices = ()
class Schema(colander.Schema):
pepper = colander.SchemaNode(
colander.Set(),
widget=deform.widget.Select2Widget(
values=choices, multiple=True, tags=True
),
)
schema = Schema()
form = deform.Form(schema, buttons=("submit",))
return self.render_form(form)