This example demonstrates the built-in pagination component.
Le composant de pagination
The HTML code.
<div class="row">
<!-- Custom attribute: Component for paginated content. -->
<div class="col-md-12" <?= attr()->bind(rq(PageContentCp::class)) ?>>
</div>
<!-- Custom attribute: Component for pagination links. -->
<div class="col-md-12" <?= attr()->pagination(rq(PageContentCp::class)) ?>>
</div>
</div>
The exported class
The Jaxon library config
The Jaxon setup code.
<?php
jaxon()->app()->setup(configFile('pagination.php'));
The Javascript code is generated from this PHP template.
jaxon.dom.ready(() => {
<?= rq(PageContentCp::class)->showPage(1, 'This is the page title') ?>;
});