logo polydile logo polydile en modo oscuro dile-components

dile-modal-crud-insert

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

Installation

npm i @dile/crud

Usage

Import the dile-modal-crud-insert component.

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

Use the component.

<dile-modal-crud-insert
  title="Insert a country"
  endpoint="${this.config.endpoint}"
  .formTemplate=${this.config.templates.insertForm}
  .openModalIcon="${draftIcon}"
  closeOnSucess
></dile-modal-crud-insert>

Properties

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

Methods

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

Custom Events

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

CSS Custom Properties

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

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