logo polydile dile-components

DileFormChangeDetectMixin

This mixin detects changes in a form and emmit a dile-form-changed event when it occurs.

To detect changes the form elements should emmit a element-changed event. for this reason, this mixins only works with custom elements that have this custom event implemented.

You could use the DileEmmitChangeMixin to send the element-changed custom event easily.

Also, for this mixin do its work depends on the DileFormMixin, so you need to implement both mixins.

Installation

npm i @dile/dile-form-mixin

Usage

import { DileFormChangeDetectMixin, DileFormMixin } from '@dile/dile-form-mixin';

export class FctCrudFilters extends 
  DileFormChangeDetectMixin(DileFormMixin(LitElement)) {

    // Code of your component...
    
}