bs-datatable
Version:
A data table based on Bootstrap 5
18 lines (17 loc) • 728 B
TypeScript
import { BSDataTableBase } from "./BSDataTableBase";
import { BSDataTableButton } from "./BSDataTableButton";
export declare class BSDataTableActions extends BSDataTableBase {
constructor();
render(): void;
addAction(id: string, type: string, icon: string, callback: (e: MouseEvent) => any, name?: string): this;
/**
* @param {(arg0: object) => any} [callback]
*/
addDeleteAction(callback: (arg0: MouseEvent) => any): this;
/**
* @param {(arg0: object) => any} [callback]
*/
addNewRecordAction(callback: (arg0: MouseEvent) => any): this;
addGridSettingsAction(): this;
getButton(id: string, type: string, icon: string, name: string): BSDataTableButton;
}