Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Resource

Hierarchy

Index

Constructors

constructor

  • new Resource(__namedParameters: { action: "show" | "create" | "edit" | "replace" | "delete" | ("show" | "create" | "edit" | "replace" | "delete")[]; collection_name: string; when: "before" | "after" }): Resource
  • Parameters

    • __namedParameters: { action: "show" | "create" | "edit" | "replace" | "delete" | ("show" | "create" | "edit" | "replace" | "delete")[]; collection_name: string; when: "before" | "after" }
      • action: "show" | "create" | "edit" | "replace" | "delete" | ("show" | "create" | "edit" | "replace" | "delete")[]
      • collection_name: string
      • when: "before" | "after"

    Returns Resource

Properties

actions

actions: ActionName[]

collection_name

collection_name: string

subject_path

subject_path: RegExp

when

when: When

Methods

containsAction

  • containsAction(action_name: ActionName): boolean

Generated using TypeDoc