Dokumentasi Modal.js

Modal.js adalah kelas JavaScript yang menyediakan fungsionalitas untuk mengelola modal dan interaksi form dalam aplikasi web menggunakan NexaUI. Kelas ini menangani operasi CRUD (Create, Read, Update, Delete) dengan integrasi modal dan form.

Struktur Modal

Komponen Tampilan Data

Konfigurasi Modal.js

Kelas ModalHandler

Metode handleFormSubmit()

Menangani pengiriman data form ke server:

handleFormSubmit(action, data, modalId) {
  this.Storage.Buckets({
    type: "nexa",
    action: action,      // formUploads/formRemove/formUpdate
    credensial: "BC948-67AB6-EA185-1001B",
    data: data
  })
  .then(response => {
    this.domInstance.Reload(response, {
      append: false,
      resetPage: true
    });
    this.modal.close(modalId);
  });
}