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

ak controls inside ak-tooltip not rendering #786

Open
aletiro opened this issue May 3, 2018 · 6 comments
Open

ak controls inside ak-tooltip not rendering #786

aletiro opened this issue May 3, 2018 · 6 comments

Comments

@aletiro
Copy link

aletiro commented May 3, 2018

I'm trying to show an ak-chart inside of an ak-tooltip. The ak-chart is being loaded through an ak-template.

When I hover over the target, the tooltip shows, but it is blank. It can display some text and images, but the ak-chart does not render. If I take the ak-chart out of the ak-template, and put it elsewhere it displays fine, so I suppose that all resources loaded correctly. I can even see the HTML loaded fine in the page source but the controls are not rendering in the tooltip. I tried it with other controls like the ak-barcode, and with the content-template instead of aurelia-template, but it's not showing.

Here is the gist.run to reproduce the issue:

With kendoUI this should be possible, as seen here

@arnederuwe
Copy link
Contributor

I couldn't immediately figure out why the gist doesn't work, so I tried reproducing this locally, and there it works fine..
Can you tell me what version of kendo/bridge you are using? Perhaps the issue lies there

@aletiro
Copy link
Author

aletiro commented May 4, 2018

the Gist is same as the one used for the tooltip with aurelia-template, i just added the barcode inside the template. I've got a kendo pro license, shouldn't be the issue, since the chart or barcode display when put somewhere else but inside of the tooltip. Would you be able to share your code?

@arnederuwe
Copy link
Contributor

it seems that the loaded wrappers are not recognized in the ak-template. You can work around this by loading the wrappers manually in main.ts, see: https://gist.run/?id=de7b9a981cd73d28b0132331a5cffbb0
@JeroenVinke , is there any way to require stuff inside ak-templates? As the above workaround is not suitable for each project

@JeroenVinke
Copy link
Member

I don't think Aurelia's enhance processes <require> elements. Currently you either have to globally register the things that you'd like to use in the ak-template (from main.js) or use require in the view which contains the ak-template, as @arnederuwe said

@JeroenVinke
Copy link
Member

I tried to do this but that doesn't work for some reason

@aletiro
Copy link
Author

aletiro commented May 15, 2018

So what are we going to do with this issue? Should I leave it open to be fixed, or close it? I'm fine with preloading the components, it's not that big of a deal in my case, but someone might have performance issues.

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