@den4ik92/ng2-smart-table 19.6.0 → 19.6.1
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.
|
@@ -14,9 +14,10 @@ export type RequestFunction<T extends Record<string, any> = any> = (params: Http
|
|
|
14
14
|
}>;
|
|
15
15
|
export declare class ServerDataSource<T extends Record<string, any> = any> extends DataSource<T> {
|
|
16
16
|
private initPagingConf?;
|
|
17
|
-
readonly count: import("@angular/core").Signal<number>;
|
|
18
17
|
paramPrepareFunction: ParamsPrepareFunction;
|
|
19
18
|
requestFunction: RequestFunction<T>;
|
|
19
|
+
readonly count: import("@angular/core").Signal<number>;
|
|
20
|
+
readonly pending: import("@angular/core").WritableSignal<boolean>;
|
|
20
21
|
constructor(paramPrepareFunction: ParamsPrepareFunction, requestFunction: RequestFunction<T>, initPagingConf?: Partial<SmartTablePagerSettings> | undefined);
|
|
21
22
|
getAll(): Promise<T[]>;
|
|
22
23
|
emitOnChanged(eventData: SmartTableOnChangedEventToEmit, newElements?: T[] | undefined): void;
|
|
@@ -14,10 +14,14 @@ export declare class Ng2SmartTableComponent<T extends BaseDataType = any> implem
|
|
|
14
14
|
* @description If you want to display pagination in your custom container, you can pass it to "paginationSlot".
|
|
15
15
|
* @example
|
|
16
16
|
* <ng2-smart-table
|
|
17
|
-
* [paginationSlot]="
|
|
17
|
+
* [paginationSlot]="paginationContainerRef()">
|
|
18
18
|
* </ng2-smart-table>
|
|
19
19
|
* <div #paginationSlot>
|
|
20
20
|
* </div>
|
|
21
|
+
* inside component
|
|
22
|
+
* readonly paginationContainerRef = viewChild<'paginationSlot', ViewContainerRef>('paginationSlot', {
|
|
23
|
+
* read: ViewContainerRef,
|
|
24
|
+
* });
|
|
21
25
|
*/
|
|
22
26
|
readonly paginationSlot: import("@angular/core").InputSignal<ViewContainerRef | undefined>;
|
|
23
27
|
/**
|