I have a LWC component embed in column of LWC Datatable using custom data types. Now I want to show/Hide OOB datatable Save button on an event fire from embed LWC component.
sdGridCustomDatatableChild - LWC datatable Component
-> sdGridCustomDatatableChild.js
import LightningDatatable from 'lightning/datatable';
import DatatableLookupTemplate from "./lookupTemplate.html";
export default class sdGridCustomDatatableChild extends LightningDatatable {
static customTypes = {
lookup: {
template: DatatableLookupTemplate,
standardCellLayout: true,
typeAttributes: ['recordID','parentID']
}
};
}
-> LookupTemplate.html
<template>
<c-lwc-reusalbe-lookup-search-component recordid={typeAttributes.recordID} parentid={typeAttributes.parentID}></c-lwc-reusalbe-lookup-search-component>
</template>
-> sdGridCustomDatatableChild.html
<template>
</template>
-> sdGridCustomDatatableChild.js-meta.xml