bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
53 stars 6 forks source link

Vue: Support components in renderers #946

Open jsakalos opened 4 years ago

jsakalos commented 4 years ago

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:

taeo commented 4 years ago

@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;
    }
awacode21 commented 8 months ago

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

jsakalos commented 8 months ago

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.