@rkosafo/cai.components 0.0.50 → 0.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types/index.d.ts
CHANGED
|
@@ -681,6 +681,7 @@ export interface DatatableProps<T = any> extends TableProps {
|
|
|
681
681
|
take?: number;
|
|
682
682
|
editor?: Snippet<[DatatableEditorFormProps]>;
|
|
683
683
|
customFilter?: Snippet<[TableFilter]>;
|
|
684
|
+
modalFooter?: Snippet;
|
|
684
685
|
}
|
|
685
686
|
export interface DatatableEditorFormProps {
|
|
686
687
|
recordId?: number | string | null;
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
deleteEntry = async (id: string | number) => {
|
|
81
81
|
return { success: false, data: null, error: null } as any;
|
|
82
82
|
},
|
|
83
|
+
modalFooter,
|
|
83
84
|
...otherProps
|
|
84
85
|
}: DatatableProps = $props();
|
|
85
86
|
|
|
@@ -506,7 +507,9 @@
|
|
|
506
507
|
})}
|
|
507
508
|
|
|
508
509
|
{#snippet footer()}
|
|
509
|
-
{#if
|
|
510
|
+
{#if modalFooter}
|
|
511
|
+
{@render modalFooter()}
|
|
512
|
+
{:else if !viewing}
|
|
510
513
|
<Button disabled={!isValid} loading={isLoading} type="submit" class="w-full" value="submit"
|
|
511
514
|
>Submit</Button
|
|
512
515
|
>
|