GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Renders a star rating (<div class="gl-rating gl-rating--stat">) with an optional label, five stars (filled up to the rounded value), and a N.N/5 value. The value is parsed with parseFloat.

      Parameters

      • config: RenderField

        Field configuration (label is rendered when present).

      • value: unknown

        Already-resolved numeric rating (0–5).

      Returns HTMLElement | null

      The rendered element, or null when the value is non-numeric.