Home Reference Source
import OpSearch from './ui/components/opsearch.js'
public class | source

OpSearch

Extends:

Events → OpSearch

search through opdocs, e.g. for opselect

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get

list: *

public

numPatchops: number

Private Members
private

_list: *

private

Method Summary

Public Methods
public
public

search(query: *)

Private Methods
private
private

_createListItemsByNames(opNames: *, listItems: *[]): *

private

_getOpsNamesFromCode(opNames: *, ns: *, val: *, parentname: *): *

private
private

_searchWord(wordIndex: *, orig: *, list: *, query: *)

Inherited Summary

From class Events
public

off: *

public

on: *

private
private
private

_log: *

private

_logEvents: boolean

private

_logName: string

public

addEventListener(which: *, cb: *, idPrefix: string): string

add event listener

public

emitEvent(which: string, param1: *, param2: *, param3: *, param4: *, param5: *, param6: *)

emit event

public

hasEventListener(id: *, cb: *): boolean

check event listener registration

public

hasListenerForEventName(eventName: *): boolean

check event listener by name

public

logEvents(enabled: boolean, logName: string)

enable/disable logging of events for the class

public

removeEventListener(id: *, cb: *)

rempve event listener registration

Public Constructors

public constructor() source

Override:

Events#constructor

Public Members

public get list: * source

public numPatchops: number source

Private Members

private _list: * source

private _wordsDb: * source

Public Methods

public resetList() source

Params:

NameTypeAttributeDescription
query *

Private Methods

private _buildList() source

private _createListItemsByNames(opNames: *, listItems: *[]): * source

Params:

NameTypeAttributeDescription
opNames *
listItems *[]
  • optional
  • default: []

Return:

*

private _getOpsNamesFromCode(opNames: *, ns: *, val: *, parentname: *): * source

Params:

NameTypeAttributeDescription
opNames *
ns *
val *
parentname *

Return:

*

private _rebuildWordList() source

private _searchWord(wordIndex: *, orig: *, list: *, query: *) source

Params:

NameTypeAttributeDescription
wordIndex *
orig *
list *
query *