Using Bootstrap Multiselect instead of Select2 for Editor

Using Bootstrap Multiselect instead of Select2 for Editor

CapamaniaCapamania Posts: 233Questions: 81Answers: 5

Is it possible to use http://davidstutz.github.io/bootstrap-multiselect/ instead of https://editor.datatables.net/plug-ins/field-type/editor.select2. I'm sure it is ... but looking at the sample javascript provided to integrate it in Editor ... what adjustments would be necessary to get it working? At the end its working with the same arrays ... e.g.

         "options": [
             { "label": "1", "value": "1" },
             { "label": "2", "value": "2" },
             { "label": "3", "value": "3" },
             { "label": "4", "value": "4" },
             { "label": "5",  "value": "5" }
         ]

Many thanks.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    Hi,

    I agree, it should be quite possible to use that library with Editor. You would need to create a field type plug-in for Editor to support it.

    Then you just set the field.type option to point to the plug-in.

    Regards,
    Allan

  • CapamaniaCapamania Posts: 233Questions: 81Answers: 5

    Thanks Allan. I'll look into this. Rgds

This discussion has been closed.