Skip to main content

css

Optional. Adds style classes to the pagination

css?: string;

Example

<style>
.custom {
--dhx-background-primary: #3A434A;
--dhx-background-secondary: #5e6d78;
--dhx-color-primary: #118d8d;
--dhx-font-color-primary: #fff;
}
</style>

<script>
const pagination = new dhx.Pagination("pagination_container", {
css: "custom dhx_widget--bordered dhx_widget--no-border_top",
data: list.data
});
</script>

Related sample: Pagination. Styling (custom CSS)

Note, that the DHTMLX library provides a set of own CSS classes that you can also apply to change the appearance of Pagination:

const pagination = new dhx.Pagination("pagination_container", {
css: "dhx_widget--bg_white dhx_widget--bordered"
});

Related articles: