wdpr
    Preparing search index...
    • 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.

      • Optionaloptions: RuntimeOptions

        Runtime options containing the optional onRate callback.

      Returns ModuleCleanup

      A cleanup handle whose destroy() method removes the click listener.