Options
All
  • Public
  • Public/Protected
  • All
Menu

The Document definition for a Card. Defines the DataSchema and common behaviors for a Card which are shared between both client and server.

mixes

CardData

memberof

documents

param data

Initial data from which to construct the Card

param context

Construction context options

Hierarchy

Index

Constructors

Methods

  • testUserPermission(user: any, permission: any, __namedParameters?: { exact: boolean }): any
  • Test whether a certain User has a requested permission level (or greater) over the Document

    Parameters

    • user: any

      The User being tested

    • permission: any

      The permission level from DOCUMENT_OWNERSHIP_LEVELS to test

    • __namedParameters: { exact: boolean } = {}

      Additional options involved in the permission test

      • exact: boolean

    Returns any

    Does the user have this permission level over the Document?

  • migrateData(data: any): any
  • inheritdoc

    Parameters

    • data: any

    Returns any

  • shimData(data: any, options: any): any
  • inheritdoc

    Parameters

    • data: any
    • options: any

    Returns any

  • #canCreate(user: any, doc: any, data: any): any
  • Is a User able to create a new Card within this parent?

    Parameters

    • user: any
    • doc: any
    • data: any

    Returns any

  • #canUpdate(user: any, doc: any, data: any): any
  • Is a user able to update an existing Card?

    Parameters

    • user: any
    • doc: any
    • data: any

    Returns any

Properties

metadata: any = ...

Default metadata which applies to each instance of this Document type.

DEFAULT_ICON: string = "icons/svg/card-joker.svg"

The default icon used for a Card face that does not have a custom image set

Accessors

  • get TYPES(): string[]
  • The allowed set of Card types which may exist

    Returns string[]