Skip to content

components/onboarding/tour/anchors#

getAnchorElement()#

function getAnchorElement(anchor, key?): HTMLElement | null;

Parameters#

Parameter Type
anchor TourAnchorId
key? string

Returns#

HTMLElement | null


tourAnchorProps()#

function tourAnchorProps(anchor, key?): {
  data-tour-anchor: TourAnchorId;
  data-tour-anchor-key: string;
};

key disambiguates anchors that several instances share, e.g. the two plots on the FID page.

Parameters#

Parameter Type
anchor TourAnchorId
key? string

Returns#

{
  data-tour-anchor: TourAnchorId;
  data-tour-anchor-key: string;
}

data-tour-anchor#

readonly data-tour-anchor: TourAnchorId;

data-tour-anchor-key#

readonly data-tour-anchor-key: string;

TourAnchor#

const TourAnchor: {
  AppBar: "app-bar";
  BrowserPanel: "browser-panel";
  ConnectionButton: "connection-button";
  Navbar: "navbar";
  PageFeature: "page-feature";
  PlotActionSidebar: "plot-action-sidebar";
  PlotCanvas: "plot-canvas";
  ProcessorCanvas: "processor-canvas";
  StartExperiment: "start-experiment";
  StatusBar: "status-bar";
  WorkspaceTabBar: "workspace-tab-bar";
};

Type Declaration#

AppBar#

readonly AppBar: "app-bar";

BrowserPanel#

readonly BrowserPanel: "browser-panel";

ConnectionButton#

readonly ConnectionButton: "connection-button";

readonly Navbar: "navbar";

PageFeature#

readonly PageFeature: "page-feature";

PlotActionSidebar#

readonly PlotActionSidebar: "plot-action-sidebar";

PlotCanvas#

readonly PlotCanvas: "plot-canvas";

ProcessorCanvas#

readonly ProcessorCanvas: "processor-canvas";

StartExperiment#

readonly StartExperiment: "start-experiment";

StatusBar#

readonly StatusBar: "status-bar";

WorkspaceTabBar#

readonly WorkspaceTabBar: "workspace-tab-bar";

TourAnchor#

type TourAnchor = typeof TourAnchor[keyof typeof TourAnchor];

TourAnchorId#

type TourAnchorId = TourAnchor | `${string}:${string}`;

A core anchor, or a plugin's own <pluginId>:<name> one, namespaced so it cannot shadow a core id.