Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show() method not working (PRO version) #115

Open
mmgarciaprofile opened this issue Aug 19, 2020 · 4 comments
Open

show() method not working (PRO version) #115

mmgarciaprofile opened this issue Aug 19, 2020 · 4 comments

Comments

@mmgarciaprofile
Copy link

mmgarciaprofile commented Aug 19, 2020

I want to define a custom html template like this one

<button (click)="open()">open</button>
<tooltip #myTooltip="tooltip">
          <div class="tooltip-content">A popover is a light roll made from an egg batter similar to that of Yorkshire pudding, typically baked in muffin tins or dedicated popover pans.</div>
          <div class="tooltip-actions">
              <button (click)="close()">Got it</button>
          </div>
      </tooltip>
@ViewChild('myTooltip', { static: false }) myTooltip;

       open() {
		this.myTooltip.show();
	}
	close() {
		this.myTooltip.close();
	}

close method is working as expected. I also checked open method but it doesn't exist.

Any help would be appreciated.

@drozhzhin-n-e
Copy link
Owner

@mmgarciaprofile Hey. I will fix this in the next library update. Now try this:

<button [tooltipTriggerFor]="myTooltip" trigger="click">open</button>

@JochenDB
Copy link

@drozhzhin-n-e Any way to work around this without trigger? I want to show the tooltip on page load. What code needs to be changed to fix this?

@drozhzhin-n-e
Copy link
Owner

@JochenDB You mean the Pro version?

@JochenDB
Copy link

JochenDB commented Oct 6, 2020

@drozhzhin-n-e yes indeed, Pro version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants