KasperOlesen / DataTable-AltEditor

Updated version of the free-datatables-editor-alternative from Kingcode.com
MIT License
329 stars 195 forks source link

Custom Modal, trigger after modal show ? #187

Closed mmmcorpsvit closed 3 years ago

mmmcorpsvit commented 3 years ago

can show any example please can't understand how use alteditor:add_dialog_opened

please help

mmmcorpsvit commented 3 years ago

solved:

    $(document).on('alteditor:add_dialog_opened', function (e) {
      console.log(e);
      console.log('fghfghfgh');
      //$.fn.dataTable.tables( {visible: true, api: true} ).columns.adjust();
    });

how i can assign for specific table?

sadeghbarati commented 3 years ago

173

take a look at it

altEditor-extended have

  1. addModalOpen
  2. editModalOpen
  3. deleteModalOpen

with these options you can assign modal for specific table


usage of above options is just like altEditor options:

  1. onAddRow
  2. onEditRow
  3. onDeleteRow
mmmcorpsvit commented 3 years ago

i need change already showed modal form via js, successful solved already why form contain undefined field? this is bug?