DefinitelyTyped

Index

Variables

Modules

Interfaces

Classes

Functions

Variables

$addHandler: (element: HTMLElement, eventName: string, handler: (e: Event) => void) => void

()

$get: (id: string) => HTMLElement

(): HTMLElement

Returns

HTMLElement

$removeHandler: (element: HTMLElement, eventName: string, handler: (e: Event) => void) => void

()

ajaxNavigate: AjaxNavigate

browseris: Browseris

m$: MQuery

Functions

AddEvtHandler(element: HTMLElement, event: string, func: EventListener)

Parameters

  • element: HTMLElement
  • event: string
  • func: EventListener

CoreRender(template: any, context: any): string

Parameters

  • template: any
  • context: any

Returns

string

GenerateIID(renderCtx: RenderContext_ItemInView): string

Parameters

Returns

string

GenerateIIDForListItem(renderCtx: RenderContext_InView, listItem: Item): string

Parameters

Returns

string

GetCurrentCtx(): ContextInfo

Returns

ContextInfo

GetUrlKeyValue(key: string): string

Gets query string parameter

Parameters

  • key: string

Returns

string

RegisterModuleInit(scriptFileName: string, initFunc: () => void)

Register function to rerun on partial update in MDS-enabled site.

Parameters

  • scriptFileName: string
  • initFunc: () => void

SPFormControl_AppendValidationErrorMessage(nodeId: string, errorResult: any)

Parameters

  • nodeId: string
  • errorResult: any

STSHtmlEncode(value: string): string

Parameters

  • value: string

Returns

string