How do you load just one component when using aurelia-syncfusion-bridge with aurelia-cli -


windows x64

aurelia-syncfusion-bridge 1.0.0

syncfusion-javascript 15.3.26

i use grid component , necessary , optional components building traces components.

per install instructions plugin set syncfusion.useall() , did not see other documentation changing setting.

thanks interest in syncfusion components.

we can use required component modifying couple of steps followed in below user guide documentation.

https://help.syncfusion.com/aurelia/getting-started/aurelia-cli-integration

  • in aurelia_project/aurelia.json file, modify following lines configured in build.bundles.dependencies. here

      {     "name": "aurelia-syncfusion-bridge",     "path": "../node_modules/aurelia-syncfusion-bridge/dist/amd",     "main": "index",     "resources": [       "grid/*.js",   // <--- required files --->       "common/template.js" // remove this, if template rendering not required     ]   } 
    • register aurelia-syncfusion-bridge plugin aurelia in our main.js file in src folder. here.

      .plugin('aurelia-syncfusion-bridge', (syncfusion) => syncfusion.ejgrid().ejtemplate());   // remove ejtemplate(), if template rendering not required 

for convenience, have prepared sample , attached below.

sample

how run.?

run below commands in sample's root location.

npm install au run --watch 

thanks,

karthick t


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -