/*! Foundation integration for DataTables' Editor * © SpryMedia Ltd - datatables.net/license */ import jQuery from 'jquery'; import DataTable from 'datatables.net-zf'; import Editor from 'datatables.net-editor'; // Allow reassignment of the $ variable let $ = jQuery; var Editor = DataTable.Editor; /* * Set the default display controller to be our foundation control */ DataTable.Editor.defaults.display = "foundation"; /* * Change the default classes from Editor to be classes for Foundation */ $.extend( true, $.fn.dataTable.Editor.classes, { field: { wrapper: "DTE_Field row", label: "small-4 columns inline", input: "small-8 columns", error: "error", multiValue: "panel radius multi-value", multiInfo: "small", multiRestore: "panel radius multi-restore", "msg-labelInfo": "label secondary", "msg-info": "label secondary", "msg-message": "label secondary", "msg-error": "label alert" }, form: { button: "button small", buttonInternal: "button small" } } ); /* * Foundation display controller - this is effectively a proxy to the Foundation * modal control. */ var shown = false; var reveal; const dom = { content: $( '
' ), close: $('