GeoLeaf Core API - v3.0.0
    Preparing search index...

    Function resolveUISlotVisibility

    • Resolves whether a registry / lazy-plugin UI slot button should be rendered.

      Two guards, in order:

      1. profileKey — hidden when Config.get(profileKey) is explicitly false.
      2. requiresPlugin — hidden unless the plugin is loaded OR lazy-available.

      Parameters

      • def: UISlotGuards

        The slot definition carrying the guard fields.

      • opts: UISlotVisibilityOptions

        Which guards to apply and how to resolve the config fallback.

      Returns boolean

      true when the button should be built, false when a guard rejects it.