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