The goog.ui.tree.TypeAhead Class

goog.ui.tree.TypeAhead()

Constructs a TypeAhead object.

The goog.ui.tree.TypeAhead.Offset Enum

Enum for offset values that are used for ctrl-key navigation among the multiple matches of a given typeahead buffer. … more

.clear()

Clears the typeahead buffer.

.handleNavigation(e)

Handles navigation keys.

e {goog.events.BrowserEvent}
The browser event.
returns {boolean}
The handled value.

.handleTypeAheadChar(e)

Handles the character presses.

e {goog.events.BrowserEvent}
The browser event. Expected event type is goog.events.KeyHandler.EventType.KEY.
returns {boolean}
The handled value.

.removeNodeFromMap(node)

Removes the given node from the nodemap.

node {goog.ui.tree.BaseNode}
Node to be removed.

.setNodeInMap(node)

Adds or updates the given node in the nodemap. The label text is used as a key and the node id is used as a value. In the case that the key already exists, such as when more than one node exists with the same label, then this function creates an array to hold the multiple nodes.

node {goog.ui.tree.BaseNode}
Node to be added or updated.