I am kind of new to DataTables.
I have a Primevue/DataTable that instantiates in HTML:
<DataTable id="cr-list" :value="userCalibrationJobsListData" sortField="calibration_run_id" :sortOrder="-1" scrollable scroll-height="400px"
table-style="min-width: 50rem" v-model:selection="selectedCalibrationRun" selectionMode="single"
contextMenu v-model:contextMenuSelection="selectedCalibrationRun" @rowContextmenu="onRowContextMenu"
:rowStyle="rowStyle">
<Column field="calibration_run_id" header="Run ID" sortable></Column>
<Column field="formulation_name" header="Formulation Name" sortable></Column>
<Column field="gage_id" header="Headwater Basin Gage" sortable></Column>
<Column field="run_date" header="Run Date" sortable></Column>
<Column header="Calibration Period" sortable>
<template #body="slotProps">
{{ slotProps.data.calibration_start_period }} <span v-if="slotProps.data.calibration_end_period">to</span> {{ slotProps.data.calibration_end_period }}
</template>
</Column>
<Column field="status" header="Status" sortable></Column>
</DataTable>
I would like to get the instance of a particular DataTable that was created like this, instead of being created with a table ID programmatically.
6