Skip to main content

context.utils

ContextUtil : d2/sdk/utils/contexts/context.utils

Utility to access Context object(s) associated with runtime.

Extends: Object
Todo

  • Examples regular & unit test.

ContextUtil.createPageContext() ⇒ PageContext

Create and return a new PageContext. Useful while writing unit tests, where settin-up a PerspectiveContext is superflous.

Kind: static method of ContextUtil

ContextUtil.getPerspectiveContext() ⇒ PerspectiveContext

Get the PerspectiveContext instance associated with runtime.

Kind: static method of ContextUtil

ContextUtil~PageContext ⇐ Context

Kind: inner interface of ContextUtil
Extends: Context

ContextUtil~PerspectiveContext ⇐ Context

Kind: inner interface of ContextUtil
Extends: Context

ContextUtil~Context ⇐ IContext

Kind: inner interface of ContextUtil
Extends: IContext