Member Junction
    Preparing search index...

    Host hook for the shell's chrome, per user or tenant.

    Instance Config decides the platform-wide chrome and is the ceiling. A host that needs a narrower answer for SOME users — a white-label product hiding the search bar for organizations whose plan does not include browsing the knowledge base, say — registers a subclass and overrides Resolve. The shell consults the policy every time it resolves its flags, and re-resolves when the policy fires Changed (the user's organization or plan changed under them).

    Booleans can only be narrowed: a true from the policy never re-enables something Instance Config turned off, and recordOpenStyle is not the policy's to change (it is resolved at startup and pushed to collaborators). appSwitcherStyle may be replaced.

    Same ClassFactory pattern as BaseUserMenu:

    @RegisterClass(BaseShellChromePolicy)
    export class MyChromePolicy extends BaseShellChromePolicy {
    public override Resolve(flags: ShellChromeFlags): ShellChromeFlags {
    return { ...flags, searchBar: flags.searchBar && this.orgHasKnowledgePlus() };
    }
    }

    The default (this class) is the identity: nothing changes for hosts that register nothing.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    Changed: Subject<void> = ...

    Fire when the answer may have changed; the shell drops its cached flags and repaints.

    Methods