module uim.bootstrap.bs5.basic.components.paginations.pagination; import uim.bootstrap; class DBS5Pagination : DBS5Obj { mixin(H5This!("UL", ["pagination"])); O center(this O)(string aSize) { return this.classes("justify-content-centers"); } O right(this O)(string aSize) { return this.classes("justify-content-end"); } O size(this O)(string aSize) { return this.classes("pagination-"~aSize); } mixin(MyContent!("item", "BS5PageItem")); mixin(MyContent!("link", "this.item", "BS5PageLink")); unittest { assert(Assert(BS5Pagination.link, `<ul class="pagination"><li class="page-item"><a class="page-link" href="#"></a></li></ul>`)); } } mixin(H5Calls!"BS5Pagination"); unittest { assert(Assert(BS5Pagination, `<ul class="pagination"></ul>`)); }