MCPcopy Create free account
hub / github.com/msgbyte/tailchat / buildStepOption

Function buildStepOption

client/web/plugins/com.msgbyte.intro/src/steps.ts:22–39  ·  view source on GitHub ↗
(options: {
  id: string;
  text: string;
  selector: string;
  position?: Shepherd.Step.StepOptions['attachTo']['on'];
  canClickTarget?: boolean;
})

Source from the content-addressed store, hash-verified

20}
21
22function buildStepOption(options: {
23 id: string;
24 text: string;
25 selector: string;
26 position?: Shepherd.Step.StepOptions['attachTo']['on'];
27 canClickTarget?: boolean;
28}): Shepherd.Step.StepOptions {
29 return {
30 id: options.id,
31 text: options.text,
32 attachTo: {
33 element: options.selector,
34 on: options.position,
35 },
36 canClickTarget: false,
37 beforeShowPromise: buildWatchDom(options.selector),
38 };
39}
40
41export const steps: Shepherd.Step.StepOptions[] = [
42 {

Callers 1

steps.tsFile · 0.85

Calls 1

buildWatchDomFunction · 0.85

Tested by

no test coverage detected