method of static class JsNgram
Description
Generate html button to control pages for result.
Example
selector.append(JsNgram.makeLinkToNext(true, selector, null, 200, 100));
Usage
makeLinkToNext(isPerfection, selector, doc, start, limit);
Argument isPerfection is a boolean value whether the button is for perfect matches or partial matches.
Argument selector is a html element to place the next results.
A button for next hits in a document is generated when argument doc is a document id.
A button for next documents is generated when argument doc is null.
Argument start is a number of items already shown.
Argument limit is a number of items to show when the button pressed.
A html div
element of class ui
icluding a button
element with a click event showing next results is created.