My_Test_Repo/force-app/main/default/lwc/chlidExp/chlidExp.js

23 lines
460 B
JavaScript

import { LightningElement } from 'lwc';
export default class ChlidExp extends LightningElement {
handleSubstract(){
this.dispatchEvent(new CustomEvent('substract'));
}
handleAdd(){
this.dispatchEvent(new CustomEvent('add'));
}
handleMultiply(event){
const valueformultiply=event.target.value;
this.dispatchEvent(new CustomEvent('multiply',{
detail:valueformultiply
}))
}
}