We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

individual vue components inside the razor pages application

I would like to use only one component, vue inplace editor [containing an expandable calendar, select etc.] in my razor pages application. could you guide me what to do? Which [umd?] files should I put on _Layout.cshtml inside the <script> tag? maybe there is somewhere ready bundle to download? or ready for production CDN version of this component? 
thanks

5 Replies

PM Pandiyaraj Muniyandi Syncfusion Team December 9, 2019 11:21 AM UTC

Hi Jan, 
 
Greetings from Syncfusion support. 
 
Yes, we can render In-place Editor component by referring following CDN resources in your _Layout.cshtml file or Razor page. 
 
 
<!-- Essentail JS2 for Vue styles --> 
<link rel='nofollow' href="https://cdn.syncfusion.com/ej2/material.css" rel="stylesheet" type="text/css" /> 
 
<!-- Essential JS 2 for Vue global script --> 
<script src="https://cdn.syncfusion.com/ej2/ej2-vue-es5/dist/ej2-vue.min.js" type="text/javascript"></script> 
 
 
For more details, refer this below documentation section 
 
We have prepared sample for your reference, get it from below link 
 
Regards, 
Pandiyaraj 



JK jan kowalski December 10, 2019 08:34 AM UTC

hello Pandiyaraj,
thank you for the answer and attached sample project. I know of course the link you provided. I tested it and everything works as it should. however, I was wondering if it is possible to extract only one component to reduce the size of the .js file, something similar to 'Custom Resource Generator for Essential JS 2' but for Vue. ej2-vue.min.js is about 9.5MB
if there are no complete files with individual components, which files should I include in the project?
ej2-base.min.js, ej2-inplace-editor.min.js, ej2-vue-base.min.js, ej2-vue-inplace-editor.umd.min.js etc. ? then bundle them?
I'm using the 'Bundler & Minifier' extension from Mads Kristensen https://marketplace.visualstudio.com/items?itemName=MadsKristensen.BundlerMinifier
sorry for the naive questions but I'm just starting to explore the world of javascript, I'm rather an asp.net guy :)


PM Pandiyaraj Muniyandi Syncfusion Team December 11, 2019 05:16 AM UTC

Hi Jan, 
 
Good day to you. 
  
Currently we doesn’t have support for render components with required scripts reference. We consider Provide a Separate minified file support as feature request from our end and it will be available, any of our upcoming releases. 
 
You can now track the current status of the report, review the proposed resolution timeline, and contact us for any further inquiries through this link: https://www.syncfusion.com/feedback/10662/ 
 
Regards,  
Pandiyaraj 



JK jan kowalski December 13, 2019 08:33 AM UTC

thank you for your effort. I will closely follow upcoming releases.
have a nice day :)


PM Pandiyaraj Muniyandi Syncfusion Team December 16, 2019 05:41 AM UTC

Hi Jan, 

Sure, we will intimate you once the feature rolled out with our release. 

Regards, 
Pandiyaraj 


Loader.
Live Chat Icon For mobile
Up arrow icon