Unplanned
Last Updated: 12 Aug 2019 14:57 by ADMIN
Nalaka
Created on: 09 Aug 2019 07:44
Category:
Type: Bug Report
1
Tooltip content template

Hi,

I am trying to use a vue single file component as the content of tooltip. I used the template syntax and it does not work. Is there any other way to achieve this?

getContent: function(e) {
      console.log("getContent");
      return {
        template: Vue.component("Tooltip", Tooltip),
        templateArgs: Object.assign({}, this.templateArgs, {
          parentComponent: this.$refs.ddl
        })
      };
    }

 

Please find the sample here. https://codesandbox.io/s/vue-template-5ex7i

 

Regards,

Nalaka

1 comment
ADMIN
Misho
Posted on: 12 Aug 2019 14:55
Hi,

Currently tooltip supports Standard Kendo UI Templates but doesn't support Single-File Componentsfor its template like the dropdowns. This is happening because dropdowns have :template property which enables the usage of single file components for the template while tooltip has only :content property for its template. I've logged this request as a enhancement in our public backlog:

https://github.com/telerik/kendo-ui-core/issues/5215

For the time being you could consider using the standard Kendo template for the tooltip widget like in the following example:

https://www.telerik.com/kendo-vue-ui/components/popups/tooltip/templates/

Regards,
Misho
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items