Posted 29 September 2021, 9:08 am EST
Hello!
Can i use Wijmo components in Django framework ?. How effective does it work?
Forums Home / Wijmo / General Discussion
Posted by: giga on 29 September 2021, 9:08 am EST
Posted 29 September 2021, 9:08 am EST
Hello!
Can i use Wijmo components in Django framework ?. How effective does it work?
Posted 1 October 2021, 3:01 am EST
Hello,
Yes, as long as you can implement JS inside the Django project you can easily implement the wijmo components into it.
As for the effectiveness of wijmo components inside the Django framework, it will work smoothly as it works with other frameworks like Angular, React, Vue… there will be no performance issues.
Note: As per our knowledge you wouldn’t be able to use the node modules inside the project, therefore we would recommend you to use wijmo CDN links for importing the modules library.
I have created a basic.html file demonstrating the same, please refer to the attached file for reference.Wijmo_Django_basic.zip
Hope this would clarify your issue, let us know if you still have any doubts.
Regards
Posted 1 October 2021, 6:48 am EST
Thank you very much!
Posted 4 October 2021, 4:43 am EST
Hi!
i have a problem
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://cdn.grapecity.com/wijmo/5.20212.812/controls/wijmo.min.js"> </script>
</head>
<body>
<script>
document.readyState === 'complete' ? init() : window.onload = init;
function init() {
let view = new wijmo.CollectionView();
}
</script>
</body>
</html>
I get an error:
Uncaught TypeError: wijmo.CollectionView is not a constructor
What am I doing wrong?
Posted 5 October 2021, 12:54 am EST
Hello,
When using the CDN links, you would require to import all the modules used by a specific control. To create a collectionView instance you need to use the “wijmo.collections” module. Please refer to the code snippet and below:
<script>
let view = new wijmo.collections.CollectionView()
</script>
Let us know if you still face any issues or have any doubts.
Regards
Posted 5 October 2021, 3:10 am EST
Is there a detailed description of other modules, when using the CDN links?
Thank you very much!
Posted 6 October 2021, 4:23 am EST
Hello,
Unfortunately, there isn’t any detailed description for all modules yet, you need to refer to the API to refer the module for that any specific class. You can also refer to the wijmo Docs for getting more information. Please refer to the links below for reference:
Wijmo API:https://www.grapecity.com/wijmo/api/
Wijmo Doc(referencing wijmo using CDN links):https://www.grapecity.com/wijmo/docs/GettingStarted/Referencing-Wijmo#deploying-wijmo-from-cdn
Hope this would help, let us know if you still face any issues.
Regards