Entity Configuration
import { LIB_UTILITIES_CONFIG } from '@tradinos/cms-frontend-utilities';
import { LIB_ENTITY_CONFIG } from '@tradinos/cms-frontend-entity';
{
provide: LIB_UTILITIES_CONFIG,
useValue: {
// Base URL for the server API. Used to define the root path for all backend requests.
SERVER_API_URL: environment.SERVER_BASE_URL,
},
},
{
provide: LIB_ENTITY_CONFIG,
useValue: {
//Available page size options for pagination, allowing you to select the number of items per page.
CMS_PAGE_SIZES: environment.CMS_PAGE_SIZES,
//Default page size to be used when displaying paginated content..
CMS_PAGE_SIZE: environment.PAGE_SIZE,
// Configuration settings for modal dialogs
DIALOG_CONFIGURATION: environment.DIALOG_CONFIGURATION,
// The default query parameter name for sorting data
CMS_SORT_NAME: environment.CMS_SORT_NAME,
// The default query parameter name for defining sort direction (e.g., 'asc' or 'desc').
CMS_DIR_NAME: environment.CMS_DIR_NAME,
},
}Last updated