Initialize the Rate module widget handler within root.
Delegates click events to rating buttons (up, down, cancel) inside
.page-rate-widget-box. Each click invokes the onRate callback
from the runtime options with the page ID (from data-page-id) and
the point delta. The widget display is updated when the callback resolves.
If no onRate callback is provided, the handler is a no-op.
Parameters
root: HTMLElement
The root DOM element containing rendered Wikidot markup.
Initialize the Rate module widget handler within root.
Delegates click events to rating buttons (up, down, cancel) inside
.page-rate-widget-box. Each click invokes theonRatecallback from the runtime options with the page ID (fromdata-page-id) and the point delta. The widget display is updated when the callback resolves.If no
onRatecallback is provided, the handler is a no-op.