dont require the config fields as we have fallback values
This commit is contained in:
@@ -6,7 +6,7 @@ import { UmbArrayState, UmbObjectState, UmbStringState } from '@umbraco-cms/back
|
||||
import { UmbRoute } from '@umbraco-cms/backoffice/router';
|
||||
|
||||
export interface UmbCollectionViewManagerConfig {
|
||||
defaultViewAlias: string;
|
||||
defaultViewAlias?: string;
|
||||
}
|
||||
|
||||
export class UmbCollectionViewManager extends UmbBaseController {
|
||||
|
||||
@@ -116,7 +116,7 @@ export class UmbDefaultCollectionContext<ItemType = any, FilterModelType extends
|
||||
|
||||
#configure(configuration: UmbCollectionConfiguration) {
|
||||
this.selection.setMultiple(true);
|
||||
this.pagination.setPageSize(configuration.pageSize);
|
||||
this.pagination.setPageSize(configuration.pageSize!);
|
||||
this.#filter.next({ ...this.#filter.getValue(), skip: 0, take: configuration.pageSize });
|
||||
}
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ import { Observable } from '@umbraco-cms/backoffice/external/rxjs';
|
||||
import { UmbPaginationManager } from '@umbraco-cms/backoffice/utils';
|
||||
|
||||
export interface UmbCollectionConfiguration {
|
||||
pageSize: number;
|
||||
defaultViewAlias: string;
|
||||
pageSize?: number;
|
||||
defaultViewAlias?: string;
|
||||
}
|
||||
|
||||
export interface UmbCollectionContext {
|
||||
|
||||
Reference in New Issue
Block a user