bs-datatable
Version:
A data table based on Bootstrap 5
23 lines (22 loc) • 747 B
TypeScript
import { BSDataTable } from "../components";
/**
* Service used to discover data-tables by ID
* This can be useful when we have many tables in the page and query them for their data
* for example: to be sent back to server when the user presses the save/persist button
*/
declare class BSDataTableDiscoveryService {
DataTables: BSDataTable[];
Add(datatable: BSDataTable): void;
GetAll(): BSGridDataModel[];
/**
*
* @param dsName DataSource Name
*/
GetByDSName(dsName: string): BSGridDataModel;
}
interface BSGridDataModel {
DataSourceName: string;
Data: object[];
}
declare const bsDataTableDiscoveryService: BSDataTableDiscoveryService;
export { bsDataTableDiscoveryService };