Skip to content

Support passing themes? #71

@hartwork

Description

@hartwork

Hi!

I would like to use the bootstrap4 theme for Select2. The way to activate it would be:

$('select').select2({
    theme: 'bootstrap4',
});

To make that work with django-easy-select2 it seems I would need to pass theme: 'bootstrap4' here:

_jq(document).ready(function(){
// easy_select2() can take select2 constructor arguments object
_jq('body').easy_select();
});

If that's right, I wonder how to best bypass just easy_select2/js/init.js as a user and load a custom copy. Any thoughts? Would a PR adding a new setting work?

Best, Sebastian

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions