Hyperlinkv0.9.0-beta.0

ui/Navigator

Source src/ui/Navigator.ts:4124 lines
export interface Service {
  readonly root: RouteGroup;
  readonly mode: "memory" | "history";
  /** Short-name path — `["Nwsl", "HttpApi"]`. */
  readonly path: ReadonlyArray<string>;
  readonly trail: ReadonlyArray<RouteGroup>;
  /** Deepest group (grid to render). */
  readonly group: RouteGroup;
  readonly selected: unknown | null;
  /** Leaf sub-view (`"logs"` / `"schedule"`), if any. */
  readonly view: string | undefined;
  readonly open: (member: MemberTag) => void;
  /** Descend by short member name from the current group (or append leaf sub-view). */
  readonly openKey: (key: string) => void;
  readonly back: () => void;
  readonly toRoot: () => void;
  /** Show the leaf’s `page`-sized content outlet as logs (path + `"logs"`). */
  readonly openLogs: (tag: LeafTag) => void;
  /** Show schedule as page content (path + `"schedule"`). */
  readonly openSchedule: (tag: LeafTag) => void;
  readonly subscribe: (listener: () => void) => () => void;
  /** History mode: re-read `location.pathname`. @internal */
  readonly syncFromLocation: () => void;
}
Referenced by 4 symbols