Open modal box with buttons extension

Open modal box with buttons extension

vatcovatco Posts: 7Questions: 4Answers: 0

Hi,

I'm trying to open a modal box with buttons extensions but i didnt found any working example.Could someone give me a hint how to create the return function.Thanks!

 {
 text: 'Add new company',
 render: function ( e, dt, node, config ) {
 return 'data-toggle="modal" data-target="#myModal">';

                }

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin
    Answer ✓

    This is Bootstrap is it? Use their API to programatically show and hide a modal.

    You would call that method in the action callback of your custom button.

    Allan

  • vatcovatco Posts: 7Questions: 4Answers: 0

    Hi Alan,

    That was very helpfull. Thank you for the quick response.

    {
                    text: 'Add New Company',
                    action: function (e, node, config){
                    $('##myModal').modal('show')
                    }
    
This discussion has been closed.