Developer-Plexscape / ngx-grapesjs

Angular wrapper library for GrapesJS
MIT License
17 stars 4 forks source link

Need to access this.setup(this.webpageConfig) from component using viewchild. #20

Closed prathap-reddy-shipsy closed 4 months ago

prathap-reddy-shipsy commented 6 months ago

class NgxWebpageEditorComponent extends NgxEditorComponent { constructor() { super(...arguments); this.webpageConfig = { container: '#gjs', plugins: [ 'grapesjs-preset-webpage', 'gjs-blocks-basic' ], pluginsOpts: { 'grapesjs-preset-webpage': { modalTitleImport: 'Import template' } } }; } ngOnInit() { this.setup(this.webpageConfig); } static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: NgxWebpageEditorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); } static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: NgxWebpageEditorComponent, selector: "ngx-grapes-webpage-editor", usesInheritance: true, ngImport: i0, template: '

', isInline: true }); } }

Need to access this.setup(this.webpageConfig) from component using viewchild.

bampakoa commented 6 months ago

Hello there 👋 Could you please provide more details on what you are trying to achieve? Why would you need to access the setup method specifically?

bampakoa commented 4 months ago

@prathap-reddy-shipsy we are closing this issue for now. Feel free to re-open it in case you can provide more information about it. We would be very happy to hear about your case and investigate further to include it in the library 🙂