new ListPager(listopt)
A class to generate legend HTML
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
list |
Array.<Object> |
<optional> |
The list to page through |
- Source:
Extends
Methods
next(pageSizeopt) → {Array.<Object>}
Returns next page from the list
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
pageSize |
number |
<optional> |
10 | The length of the list for the next page |
- Source:
Returns:
The HTML element for the legend wrapped in a JQuery object
- Type
- Array.<Object>
replace(str, values) → {string}
Replace tokens in a string with values from a provided object
Parameters:
| Name | Type | Description |
|---|---|---|
str |
string | String with tokens to be replaced |
values |
Object.<string, string> | Values token for replacement |
- Inherited From:
- Source:
Returns:
String with replacement value substitution
- Type
- string
reset(listopt)
Resets the pager with a new list
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
list |
Array.<Object> |
<optional> |
The list to page through |
- Source: