UNPKG

fonteva-design-guide

Version:

## Dev, Build and Test

33 lines (31 loc) 1.17 kB
import LightningDatatable from 'lightning/datatable'; import pfmBaseTableCurrency from './pfmBaseTableCurrency.html'; import customActionButtonHtml from './customActionButton.html'; import customInputHtml from './customInput.html'; import customBadge from './customBadge.html'; import customComponent from './customComponent.html'; export default class PfmBaseTable extends LightningDatatable { static customTypes = { fonCurrency: { template: pfmBaseTableCurrency, // Provide template data here if needed typeAttributes: ['currencyIsoCode', 'isMultiCurrencyOrg', 'isLeftAligned'] }, customActionButton: { template: customActionButtonHtml, typeAttributes: ['actionButtonAttributes'] }, input: { template: customInputHtml, typeAttributes: ['inputAttributes'] }, badge: { template: customBadge, typeAttributes: ['badgeAttributes'] }, customComponent: { template: customComponent, typeAttributes: ['customComponent'] } }; }