Bootstrap Integration for DataTables Editor: Set Draggable to True

Bootstrap Integration for DataTables Editor: Set Draggable to True

tom@pdptom@pdp Posts: 19Questions: 7Answers: 0

Hi,

Any chance to set draggable to true while using the the Bootstrap integration for DataTables Editor?

Thank you in advance,
Tom

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,697Questions: 1Answers: 10,102 Site admin

    Hi Tom,

    I might be wrong, but the Bootstrap modal doesn't have a draggable option does it? Are you using some other library to add that ability? If so, what configuration does it need? Can you link to any documentation for it?

    Thanks,
    Allan

  • tom@pdptom@pdp Posts: 19Questions: 7Answers: 0

    Hi Allan,

    I am afraid you are right. It is not a default setting.

    I found it here:

    https://nakupanda.github.io/bootstrap3-dialog/

    BootstrapDialog.show({
          title: 'Another short dialog',
          message: 'Test',
          draggable: true
    });
    

    Libraries to include:

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.35.4/css/bootstrap-dialog.css" />

    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.35.4/js/bootstrap-dialog.js"></script>

    Any chance to use it with the Editor anyways?

    Best Regards,
    Tom

  • allanallan Posts: 61,697Questions: 1Answers: 10,102 Site admin
    Answer ✓

    Hi Tom,

    Thanks for the link. That looks like it is basically a replacement for Bootstrap's own modals, although using the same basic styling so they look the same.

    In which case, using a custom display controller that makes the BootstrapDialog control usable as an Editor form display would be the way to go.

    Regards,
    Allan

This discussion has been closed.