Forest Admin - API reference
    Preparing search index...

    Class CollectionChartContext<S, N>

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    compositeRecordId: CompositeId
    realCollection: Collection

    Accessors

    • get caller(): Readonly<Caller>

      Returns Readonly<Caller>

    • get collection(): RelaxedCollection<S, N>

      Returns RelaxedCollection<S, N>

    • get dataSource(): RelaxedDataSource<S>

      Returns RelaxedDataSource<S>

    • get parameters(): Record<string, string>

      Returns Record<string, string>

    • get recordId(): string | number

      Returns string | number

    Methods

    • Parameters

      Returns Promise<TRow<S, N>>

    • Stop hooks execution and send error to the UI

      Parameters

      • message: string

        the error message

      Returns never

      .throwError('My error message');
      
    • Stop hooks execution and send Forbidden error to the UI

      Parameters

      • message: string

        the forbidden error message

      Returns never

      .throwForbiddenError('My forbidden error message');
      
    • Stop hooks execution and send Validation error to the UI

      Parameters

      • message: string

        the validation error message

      Returns never

      .throwValidationError('My validation error message');