SuggestionTracker

SuggestionTracker

Class representing a list of suggestions for a misspelt word. It will keep track of which suggestion is currently being shown to the user.

Constructor

new SuggestionTracker(suggestions)

Create a SuggestionTracker
Source:
Parameters:
Name Type Description
suggestions Array.<string> array of suggestion strings

Members

currentSuggestion

Get the currently shown/inlined suggestion
Source:

Methods

cycle(direction)

Cycle through suggestions in a given direction
Source:
Parameters:
Name Type Description
direction string either 'up' or 'down'