helipopper icon indicating copy to clipboard operation
helipopper copied to clipboard

ERROR Type of content is not supported

Open blakazulu opened this issue 1 year ago • 0 comments

Hi, I'm trying to create a popup programmatically using this logic:

   const element: HTMLElement = filterElement;
  // Clear the container if needed
  this.viewContainerRef.clear();

  // Assume filters is an array of your Filter type and filter is a single Filter instance
  const componentRef = filters
    ? this.viewContainerRef.createComponent(MetadataFilterDropdownComponent)
    : this.viewContainerRef.createComponent(FilterDropdownComponent);

  // Assuming tippyService.create accepts an HTMLElement and options
  const domElem = componentRef.location.nativeElement;

  this.tippy = this.tippyService.create(element, domElem);

The component is showing up. but... the problem I'm getting is this - "ERROR Type of content is not supported"

I would love some help trying to understand this.

blakazulu avatar Feb 15 '24 14:02 blakazulu