Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Types

Repository

Repository: { get: any; search: any; add: any; replace: any; remove: any }

Repository, which can search/add/replace/remove entities.

Type declaration

For Entity List

Const editEntity

  • editEntity(entityPath: string, formPath: string, store: Store): Store
  • Loads a specified entity to the form for editing.

    Parameters

    • entityPath: string
    • formPath: string
    • store: Store

    Returns Store

Const makeEntity

  • makeEntity(data: Json, formPath: string, store: Store): Store
  • Loads an initial data to the form for creating an entity.

    Parameters

    • data: Json
    • formPath: string
    • store: Store

    Returns Store

CommitEntityOptions

CommitEntityOptions: { errorSelector?: string; loadingName?: string; successName?: string; failureName?: string }

Type declaration

  • Optional errorSelector?: string
  • Optional loadingName?: string
  • Optional successName?: string
  • Optional failureName?: string

Const commitEntity

Const discardEntity

  • discardEntity(formPath: string, store: Store): Store
  • Discard the entity in the form.

    Parameters

    • formPath: string
    • store: Store

    Returns Store

DeleteEntityOptions

DeleteEntityOptions: { confirmName?: string; loadingName?: string; successName?: string; failureName?: string }

Type declaration

  • Optional confirmName?: string
  • Optional loadingName?: string
  • Optional successName?: string
  • Optional failureName?: string

Const deleteEntity

LoadEntitiesOptions

LoadEntitiesOptions: { loadingName?: string; failureName?: string; page?: number; pageProperty?: string }

Type declaration

  • Optional loadingName?: string
  • Optional failureName?: string
  • Optional page?: number
  • Optional pageProperty?: string

Const loadEntities

SearchEntitiesOptions

SearchEntitiesOptions: { errorSelector?: string; loadingName?: string; failureName?: string }

Type declaration

  • Optional errorSelector?: string
  • Optional loadingName?: string
  • Optional failureName?: string

Const searchEntities

Const makeEntityListUpdates

For Single Entity

SubmitOptions

SubmitOptions: { path?: string; errorSelector?: string; loadingName?: string; successName?: string; failureName?: string }

Type declaration

  • Optional path?: string
  • Optional errorSelector?: string
  • Optional loadingName?: string
  • Optional successName?: string
  • Optional failureName?: string

Const submit

  • submit(repository: Repository): (method: "add" | "replace", options: SubmitOptions, store: Store) => Store | Promise<any>
  • Submits data to a repository. The method can be "add" or "replace".

    Parameters

    Returns (method: "add" | "replace", options: SubmitOptions, store: Store) => Store | Promise<any>

      • (method: "add" | "replace", options: SubmitOptions, store: Store): Store | Promise<any>
      • Parameters

        Returns Store | Promise<any>

ResetOptions

ResetOptions: { confirmName?: string }

Type declaration

  • Optional confirmName?: string

Const reset

Const editPart

  • editPart(partPath: string, formPath: string, store: Store): Store
  • Loads a part of the entity into the form for editing.

    Parameters

    • partPath: string
    • formPath: string
    • store: Store

    Returns Store

Const makePart

  • makePart(pathToAdd: string, data: Json, formPath: string, store: Store): Store
  • Loads data into the form for createing a part of the entity.

    Parameters

    • pathToAdd: string
    • data: Json
    • formPath: string
    • store: Store

    Returns Store

CommitPartOptions

CommitPartOptions: { errorSelector?: string; idProperty?: string }

Type declaration

  • Optional errorSelector?: string
  • Optional idProperty?: string

Const commitPart

  • commitPart(formPath: string, nextIdPath: string, options: CommitPartOptions, store: Store): Store

Const discardPart

  • discardPart(formPath: string, store: Store): Store

RemovePartOptions

RemovePartOptions: { confirmName?: string }

Type declaration

  • Optional confirmName?: string

Const removePart

  • removePart(partPath: string, options: RemovePartOptions, store: Store): Store | Promise<any>

CopyPartOptions

CopyPartOptions: { pathToAdd?: string; idProperty?: string }

Type declaration

  • Optional pathToAdd?: string
  • Optional idProperty?: string

Const copyPart

  • copyPart(partPath: string, nextIdPath: string, options: CopyPartOptions, store: Store): Store

Const makeEntityUpdates

Other

SingularRepository

SingularRepository: { get: any; replace: any }

Type declaration

Generated using TypeDoc