Keyword highlighting features
Methods
generate()
Generate index of highlights
navigate(type, dir) → {boolean}
Navigate elements
Parameters:
Name | Type | Description |
---|---|---|
type |
string | The highlight type to target |
dir |
string | The direction (prev or next) |
Returns:
success
- Type
- boolean
updateIndex(e)
Update current index to specified element
Parameters:
Name | Type | Description |
---|---|---|
e |
DOMEvent | DOM Event |