8000 Add select2 constructor parameters · Issue #4 · applegrew/django-select2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add select2 constructor parameters #4
Closed
@fceruti

Description

@fceruti

I need to add

createSearchChoice: function(term, data) {
    if ($(data).filter(function() {return this.text.localeCompare(term)===0; }).length===0) {
        return {id:term, text:term};
    }
}

So that I can add stuff, not only select the already existing. Also, I haven't been able to add an initial value to django-select2 form fields.

Are this two things supposed to work but I'm not getting, are bugs or are they not possible?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0