logo polydile logo polydile en modo oscuro dile-components

dile-modal-crud-update

The dile-modal-crud-update component provides a modal interface for creating new records in a CRUD system. It extends the functionality of dile-crud-update and incorporates dile-modal for displaying the form within a modal.

Installation

npm i @dile/crud

Usage

Import the dile-modal-crud-update component.

import '@dile/crud/components/update/modal-crud-update.js';

Use the component.

<dile-modal-crud-update
  title="update a country"
  endpoint="${this.config.endpoint}"
  loadOnInit
  relatedId="${this.relatedId}"
  .formTemplate=${this.config.templates.updateForm}
  closeOnSuccess
  openModalLabel="Edit country"
></dile-modal-crud-update>

Properties

This component extends properties from the dile-crud-update component. Please refer to dile-crud-update documentation for inherited properties. Additionally, it introduces the following:

Methods

This component extends methods from the dile-crud-update component. Please refer to its documentation for inherited methods.

Custom Events

Please refer to dile-crud-update documentation for inherited custom events.

CSS Custom Properties

This component inherits styles from dile-crud-update, dile-modal, dile-button and dile-button-icon.

Custom property Description Default
--dile-modal-crud-extra-padding Padding for the form container 3px