It is a component of dynamic forms. It uses the global Vuex
store.
<paginate-builder :meta="{current_page: 1, from: 1, last_page: 12, path: 'https:\/\/local.awes.io\/example-package', per_page: 15, to: 12, total: 12}"></paginate-builder>
Name | Type | Default | Description |
---|---|---|---|
meta | Object |
undefined |
Pagination data |
scroll-to | String |
'body' |
Element to be scrolled to after you go |
{
"current_page": 1,
"data": [],
"from": 1,
"per_page": 15,
"to": 12,
"total": 12
}
By default, after switching of pagination, the page is scrolled up (in the body body
element) in 200 milliseconds.
<head>
<!-- config -->
<script>
const AWES_CONFIG = {
key: 'YOUR API KEY',
tableBuilder: {
scrollTo: '#frame__content', // CSS selector used in document.querySelector
scrollDuration: 300 // milliseconds, this value is configured only globally for all tables
}
}
</script>
<head>
<paginate-builder scroll-to="#my-element"></paginate-builder>
<!-- globally -->
<head>
<!-- config -->
<script>
const AWES_CONFIG = {
key: 'YOUR API KEY',
tableBuilder: {
scrollTo: false
}
}
</script>
<head>
<!-- locally -->
<paginate-builder :scroll-to="false"></paginate-builder>