Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ApiBase

Hierarchy

Index

Constructors

constructor

  • new ApiBase(blotter: IAdaptableBlotter): ApiBase
  • Constructor for all the api classes which simply takes and assigns an instance of the Adaptable Blotter

    Parameters

    • blotter: IAdaptableBlotter

      the core IAdaptableBlotter object

    Returns ApiBase

Methods

checkItemExists

  • checkItemExists(item: any, name: string, type: string): boolean
  • Base api Helper method to ensure that the Adaptable Blotter Object being used in the function is not null or undefined

    If it does not exist then we log an error and the api method should stop

    Parameters

    • item: any

      the AdaptableBlotterObject being checked

    • name: string

      the name of the object if it has one (e.g. if its a search)

    • type: string

      the actual type of the object being checked

    Returns boolean

dispatchAction

  • dispatchAction(action: Action): void
  • Base api Helper method that dispatches a Redux Action to the Store

    Parameters

    • action: Action

      the Redux Action to be dispatched

    Returns void

getBlotterState

  • getBlotterState(): AdaptableBlotterState
  • Returns the entire State from the Store

    This is a simple getState() call

    Returns AdaptableBlotterState

Generated using TypeDoc