goog.ui.ac.ArrayMatcher
Classgoog.ui.ac.ArrayMatcher(rows, opt_noSimilar)
Basic class for matching words in an array
rows
{Array
}
opt_noSimilar
{boolean
=}
.getPrefixMatches(token, maxMatches)
Matches the token against the start of words in the row.
token
{string
}
maxMatches
{number
}
Array
}
.getSimilarRows(token, maxMatches)
Matches the token against similar rows, by calculating "distance" between the terms.
token
{string
}
maxMatches
{number
}
Array
}
.requestMatchingRows(token, maxMatches, matchHandler, opt_fullString)
Function used to pass matches to the autocomplete
token
{string
}
maxMatches
{number
}
matchHandler
{Function
}
opt_fullString
{string
=}
.setRows(rows)
Replaces the rows that this object searches over.
rows
{Array
}