17 lines
473 B
JavaScript
17 lines
473 B
JavaScript
|
|
import { Handler } from '/csspageweaver/lib/paged.esm.js';
|
||
|
|
|
||
|
|
|
||
|
|
export default class myCustomHandler2 extends Handler {
|
||
|
|
constructor(chunker, polisher, caller) {
|
||
|
|
super(chunker, polisher, caller);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
afterPageLayout(pageElement, page, breakToken) {
|
||
|
|
if(pageElement.id == "page-1"){
|
||
|
|
console.info("%c [CSS Page Weaver] Example custom handler 2 with afterPageLayout hook (see js/custom-handler-example-2.js", 'color: green;')
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|