Hierarchy

Constructors

  • Parameters

    • content: string | number | SVGTemplateResult | TemplateResult<ResultType>
    • contentType: "template" | "icon" = 'icon'

    Returns NodeButton

Properties

content: string | number | SVGTemplateResult | TemplateResult<ResultType>
contentType: "template" | "icon" = 'icon'
cxtWidgetProps: Partial<Props> = ...
enabled: boolean
highlighted?: boolean
isVisible: boolean
node?: NodeSingular
tippyWidget: Instance<Props>
properties: PropertyDeclarations = ...
styles: CSSResult[] = ...

Methods

  • Attach cxt widget and show it

    Parameters

    • element: HTMLElement

      the target html elment

    Returns void

  • Attach cxt widget and do not show it, if it was visible it stays visible

    Parameters

    • element: HTMLElement

      the target html element

    Returns void

  • Parameters

    • Optional position: {
          x: number;
          y: number;
      }
      • x: number
      • y: number

    Returns void