Class SPClientAutoFill

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(elmTextId: string, elmContainerId: string, fnPopulateAutoFill: (targetElement: HTMLInputElement) => void): SPClientAutoFill

Parameters

  • elmTextId: string
  • elmContainerId: string
  • fnPopulateAutoFill: (targetElement: HTMLInputElement) => void

Returns

SPClientAutoFill

Properties

public AllOptionData: { [key: string]: ISPClientAutoFillData; }

(): ISPClientAutoFillData

Returns

ISPClientAutoFillData

public AutoFillCallbackTimeoutID: string

public AutoFillContainerId: string

public AutoFillMenuId: string

public AutoFillMinTextLength: number

public AutoFillTimeout: number

public CurrentFocusOption: number

public static DisplayTextProperty: string

public FuncOnAutoFillClose: (elmTextId: string, ojData: ISPClientAutoFillData) => void

public FuncPopulateAutoFill: (targetElement: HTMLElement) => void

public static KeyProperty: string

public static MenuOptionType: { Option: number; Footer: number; Separator: number; Loading: number; }

public MenuOptionType.Footer: number

public MenuOptionType.Loading: number

public MenuOptionType.Option: number

public MenuOptionType.Separator: number

public static MenuOptionTypeProperty: string

public static SubDisplayTextProperty: string

public TextElementId: string

public static TitleTextProperty: string

public VisibleItemCount: number

Methods

public BlurAutoFill()

public CloseAutoFill(ojData: ISPClientAutoFillData)

Parameters

public FocusAutoFill()

public static GetAutoFillMenuItemFromOption(elmChild: HTMLElement): HTMLElement

Parameters

  • elmChild: HTMLElement

Returns

HTMLElement

public static GetAutoFillObjFromContainer(elmChild: HTMLElement): SPClientAutoFill

Parameters

  • elmChild: HTMLElement

Returns

SPClientAutoFill

public static GetAutoFillObjFromInput(elmText: HTMLInputElement): SPClientAutoFill

Parameters

  • elmText: HTMLInputElement

Returns

SPClientAutoFill

public IsAutoFillOpen(): boolean

Returns

boolean

public PopulateAutoFill(jsonObjSuggestions: ISPClientAutoFillData[], fnOnAutoFillCloseFuncName: (elmTextId: string, objData: ISPClientAutoFillData) => void)

Parameters

  • jsonObjSuggestions: ISPClientAutoFillData[]
  • fnOnAutoFillCloseFuncName: (elmTextId: string, objData: ISPClientAutoFillData) => void

public SelectAutoFillOption(elemOption: HTMLElement)

Parameters

  • elemOption: HTMLElement

public SetAutoFillHeight()

public UpdateAutoFillMenuFocus(bMoveNextLink: boolean)

Parameters

  • bMoveNextLink: boolean

public UpdateAutoFillPosition()