Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
852 B
1
Indexable
Never
<template>
    <lightning-card title="Data Table with Pagination">
        <template if:true={showTable}>
            <c-paginator records={fees} 
                        total-records={fees.length} 
                        show-search-box="true" 
                        onpaginatorchange={handlePaginatorChange}>
            </c-paginator>
            <lightning-datatable key-field="Id" 
                                data={recordsToDisplay} 
                                columns={columns}
                                hide-checkbox-column
                                show-row-number-column
                                row-number-offset={rowNumberOffset}>
            </lightning-datatable>
        </template>
        <template if:false={showTable}>
                sorry amigo
        </template>

    </lightning-card>
</template>