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

TooltipTrigger one input for string and template #561

Open
2 tasks
OlegSuncrown opened this issue Jan 19, 2025 · 0 comments
Open
2 tasks

TooltipTrigger one input for string and template #561

OlegSuncrown opened this issue Jan 19, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@OlegSuncrown
Copy link
Contributor

Which scope/s are relevant/related to the feature request?

tooltip

Information

Hello @goetzrobin, we had discussion here #390, what do you think?

I think we already have one import for string or template

pass template as import

<button [hlmTooltipTrigger]="template" hlmBtn variant="outline">Open Html</button>

<ng-template #template>
	<div class="flex items-center">
		My html tooltip
		<hlm-icon class="ml-2" size="sm" name="lucidePlus" />
	</div>
</ng-template>

pass string as import

<button [hlmTooltipTrigger]="'My string tooltip'"hlmBtn variant="outline">
	Open String
</button>

And if you like this version, I think this <hlm-tooltip></hlm-tooltip> can be removed at all.

Describe any alternatives/workarounds you're currently using

No response

I would be willing to submit a PR to fix this issue

  • Yes
  • No
@OlegSuncrown OlegSuncrown added the enhancement New feature or request label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant