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

Vue: Support components in renderers #946

Open
2 of 6 tasks
jsakalos opened this issue Jun 16, 2020 · 3 comments
Open
2 of 6 tasks

Vue: Support components in renderers #946

jsakalos opened this issue Jun 16, 2020 · 3 comments
Assignees
Labels
feature request in progress vue Vue framework integration

Comments

@jsakalos
Copy link

jsakalos commented Jun 16, 2020

Implement support for Vue component to be used as/in renderers (columnRenderer, headerRenderer)

Now that we have both Vue 2 and Vue 3 wrappers we need to implement it for both versions:

  • Vue 2 column renderer
  • Vue 2 event renderer
  • Vue 3 column renderer
  • Vue 3 event renderer
  • Vue 2 tooltip renderer
  • Vue 3 tooltip renderer
@jsakalos jsakalos added feature request vue Vue framework integration labels Jun 16, 2020
@taeo
Copy link

taeo commented Jul 1, 2020

@jsakalos - This isn't ideal and hasn't been fully tested for issues or performance, BUT it does render a vue component. Example is for eventRenderer using our SchedulerEvent Vue component. Same concept applies for other Bryntum *Renderer functions.

    // Renderer for Bryntum scheduler event with Vue component
    public eventRenderer({eventRecord, tplData}: any) {
        const ComponentClass = Vue.extend(SchedulerEvent);
        const instance = new ComponentClass({
            propsData: { record: eventRecord }
        }).$mount();

        return instance.$el.innerHTML;
    }

@jsakalos jsakalos self-assigned this Feb 1, 2021
@awacode21
Copy link

Any news on this? i need the support of vue components within vue 3 tooltip renderer

@jsakalos
Copy link
Author

No news yet. It is on our todo list slated most likely for February. Until then you can try the above approach in the tooltipRenderer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request in progress vue Vue framework integration
Projects
None yet
Development

No branches or pull requests

3 participants