@flavorly/vanilla-components-inertia
Version:
🤌 Inertia integration for @flavorly/vanilla-components
20 lines (19 loc) • 671 B
TypeScript
import type { DatatableConfiguration } from '@flavorly/vanilla-components';
export interface InertiaDatatableOptions {
actionsCallback?: boolean;
}
export interface InertiaDatatableAction {
url: string;
reload: boolean;
query: string[];
options: {
method: 'get' | 'post' | 'put' | 'patch' | 'delete';
data: Record<string, any>;
headers: Record<string, any>;
preserveScroll: boolean;
preserveState: boolean;
only: string[];
[key: string]: any;
};
}
export default function useInertiaDatatable(configuration: DatatableConfiguration, options?: InertiaDatatableOptions): DatatableConfiguration;