File

packages/data/src/lib/crud/crud-config.interface.ts

Description

The CrudConfig allows a quick customization of an ec-crud component.

Extends

ListConfig

Index

Properties

Properties

alwaysLoadEntry
alwaysLoadEntry: boolean
Type : boolean
Optional

If true, an entry is always loaded when opened, even with lvl1

createLabel
createLabel: string
Type : string
Optional

The label for the entry create button

customUpload
customUpload: boolean
Type : boolean
Optional

If true, a pop will open before upload to set up custom options

deleteOnRemove
deleteOnRemove: boolean
Type : boolean
Optional

If true, selects will delete entries that are removed from the selection

develop
develop: boolean
Type : boolean
Optional

If true, an extra develop button will be shown

disableCreatePop
disableCreatePop: boolean
Type : boolean
Optional

If true, no create pop will be available at selects

disableListPop
disableListPop: boolean
Type : boolean
Optional

If true, no list pop will be available at selects

disableRemove
disableRemove: boolean
Type : boolean
Optional

If true, removal of items wont be possible (select)

disableSearchbar
disableSearchbar: boolean
Type : boolean
Optional

If true, no dropdown will be accessible

disableSelectSwitch
disableSelectSwitch: boolean
Type : boolean
Optional

If true, no select mode switch will be shown

disableUrlUpload
disableUrlUpload: boolean
Type : boolean
Optional

If true, assets cannot be upload via url

dropdownFields
dropdownFields: FieldConfig
Type : FieldConfig
Optional

The fields that are used in select dropdowns, defaults to label field only.

fileOptions
fileOptions: FileOptions
Type : FileOptions
Optional

Default options for file uploads

hideAssetGroupSelect
hideAssetGroupSelect: boolean
Type : boolean
Optional

Hides the assetGroup select in asset-list-pop

keepPopOpen
keepPopOpen: boolean
Type : boolean
Optional

If true, the entry pop will remain open after the entry has been successfully saved.

levels
levels: number
Type : number
Optional

With how many levels should a list entry be loaded? Defaults to 1 (taking entry directly from the list, without loading)

loader
loader: LoaderComponent
Type : LoaderComponent
Optional

An external loader component that should be used, falls back to internal.

methods
methods: Array<string>
Type : Array<string>
Optional

An Array of Methods that should be supported. Possible values are create, read, update and delete

nestedPopActive
nestedPopActive: boolean
Type : boolean
Optional

If true, a nested pop will be active immediately

notifications
notifications: NotificationsComponent
Type : NotificationsComponent
Optional

An external notifications component that should be used, falls back to internal

permissions
permissions: literal type
Type : literal type
Optional

maps the permissions to the methods post put create delete

placeholder
placeholder: string
Type : string
Optional

Sets a placeholder. Used e.g. for empty entry-select

pluralLabel
pluralLabel: string
Type : string
Optional

The label for multiple entities

popColumns
popColumns: number
Type : number
Optional

Defines the column width of the pops used. Defaults to popService.defaultColumns

safeDelete
safeDelete: boolean
Type : boolean
Optional

If true, delete operations need confirmation

singularLabel
singularLabel: string
Type : string
Optional

The label for one entity

import { ListConfig, FieldConfig } from '@ec.components/core';
import { NotificationsComponent, LoaderComponent } from '@ec.components/ui';
import { FileOptions } from '../files/file.service';

/** The CrudConfig allows a quick customization of an ec-crud component. */
export interface CrudConfig<T> extends ListConfig<T> {
  /** The fields that are used in select dropdowns, defaults to label field only. */
  dropdownFields?: FieldConfig;
  /** The label for one entity */
  singularLabel?: string;
  /** The label for multiple entities */
  pluralLabel?: string;
  /** The label for the entry create button */
  createLabel?: string;
  /** An Array of Methods that should be supported. Possible values are create, read, update and delete*/
  methods?: Array<string>;
  /** An external loader component that should be used, falls back to internal. */
  loader?: LoaderComponent;
  /** An external notifications component that should be used, falls back to internal */
  notifications?: NotificationsComponent;
  /** If true, an extra develop button will be shown*/
  develop?: boolean;
  /** If true, the entry pop will remain open after the entry has been successfully saved. */
  keepPopOpen?: boolean;
  /** With how many levels should a list entry be loaded? Defaults to 1 (taking entry directly from the list, without loading)*/
  levels?: number;
  /** If true, an entry is always loaded when opened, even with lvl1 */
  alwaysLoadEntry?: boolean;
  /** maps the permissions to the methods post put create delete */
  permissions?: { put?: string | boolean; post?: string | boolean; get?: string | boolean; delete?: string | boolean };
  /** If true, no select mode switch will be shown */
  disableSelectSwitch?: boolean;
  /** If true, no list pop will be available at selects */
  disableListPop?: boolean;
  /** If true, assets cannot be upload via url */
  disableUrlUpload?: boolean;
  /** If true, no create pop will be available at selects */
  disableCreatePop?: boolean;
  /** If true, no dropdown will be accessible */
  disableSearchbar?: boolean;
  /** If true, removal of items wont be possible (select) */
  disableRemove?: boolean;
  /** If true, selects will delete entries that are removed from the selection */
  deleteOnRemove?: boolean;
  /** If true, delete operations need confirmation */
  safeDelete?: boolean;
  /** Hides the assetGroup select in asset-list-pop */
  hideAssetGroupSelect?: boolean;
  /** Default options for file uploads */
  fileOptions?: FileOptions;
  /** If true, a pop will open before upload to set up custom options */
  customUpload?: boolean;
  /** Defines the column width of the pops used. Defaults to popService.defaultColumns */
  popColumns?: number;
  /** If true, a nested pop will be active immediately */
  nestedPopActive?: boolean;
  /** Sets a placeholder. Used e.g. for empty entry-select */
  placeholder?: string;
}

result-matching ""

    No results matching ""