Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PidRepository

Index

Constructors

constructor

Properties

Protected _store

_store: Store

The reactive store to read the pid configuration from

Methods

Protected afterNavigation

  • afterNavigation(e: EventEmitterEvent): void

getAllPids

  • getAllPids(): PlainObject<any>

getCurrentPid

  • getCurrentPid(): number

getPid

  • getPid(key: ListPath, fallback?: string | number): number
  • Returns the pid for the given key

    Parameters

    • key: ListPath

      A key like "myKey", "$pid.storage.stuff" or "storage.myKey" for hierarchical data If a key's value is numeric and can be parsed as integer it will be returned if no pid could be found

    • Optional fallback: string | number

      An optional fallback which will be returned, if the required pid was not found NOTE: If no fallback is defined -1 is returned if no value was found for the key

    Returns number

hasPid

  • hasPid(key: ListPath): boolean
  • Returns true if the pid with the given key exists

    Parameters

    • key: ListPath

      A key like "myKey" or "storage.myKey" for hierarchical data

    Returns boolean

Generated using TypeDoc