Comments (7)
Try import 'dhtmlx-gantt';
Then the gantt
variable is accessible.
You will also need to import the css file either by the cdn or importing from the node_modules directory into your style sheet:
@import "../node_modules/dhtmlx-gantt/codebase/dhtmlxgantt.css"
from gantt.
Also interested is this question
from gantt.
+1
from gantt.
The best I could do is use bower. @plazarev and @Stanislav-Wolski are there any plans to migrate the JavaScript to either CJS, AMD, or ES6 so that we can use it in places other than a browser?
from gantt.
One option would be to port the Gantt to TypeScript and have it produce any module you like. My preference would be UMD since it covers nearly all use cases.
from gantt.
Hi,
currently, there are no plans to publish CJS/ES6/AMD compatible builds. Not in the sense that it was rejected, but we didn't do any research so far due to a very little demand. We have type definitions for TS https://www.npmjs.com/package/@types/dhtmlxgantt , so everything should be pretty usable with the TypeScript. The type definitions are a bit behind the latest version of gantt though, we'll update them soon.
Probably, we could wrap gantt declaration into UMD and keep current global declaration in order to break any compatibility, if it makes sense.
Regarding using dhtmlxgantt outside a browser - it's unlikely to happen soon, since again, we haven't researched it, and from the first look it may require quite a bit of change all around the codebase. Can you give me a use-case when you'll want to run gantt outside the browser?
I've added both items (CJS/AMD/UMD and running outside a browser) to the tracker to investigate later.
Closing the issue for now. Feel free to reopen the issue if you have any comments.
from gantt.
Feature already added in the last release
from gantt.
Related Issues (20)
- Task row_height doesn't work as expected HOT 1
- With Autoscroll turned on, if resize task and release mouse outside browser window, library will do infinite scrolling HOT 1
- Missing & incorrect Typescript type definitions HOT 1
- After running this sample locally, I did not report any errors, but the table below still did not display it. However, the sample on the official website can display normally. Why is this? Sorry to bother you, thank you for providing the software with care HOT 1
- how to use dhtmlx-gantt in polymer? HOT 1
- With multi-select on, There is a problem with the performance of undo HOT 1
- 在vue中使用dhtmlx-gantt,遇到的问题 HOT 4
- Gantt is undefined HOT 1
- Payable UI Gantt HOT 1
- When autosize is not set to true, the page will render the dom infinitely repeatedly, causing the CPU to be at full capacity HOT 2
- Regarding task repetition and color change HOT 4
- gantt.addMarker is not a function HOT 1
- How to customize header, such as header color, font size, font width, and background color HOT 2
- How to add multiple Gantt charts to a page? HOT 2
- Misaligned grids on windows machine
- Issue with parse data get by axios HOT 2
- hot to use export_api? HOT 3
- Nextjs HOT 1
- How to disable single task selection when I use multi-select HOT 1
- DOMException in onrender when column name has a space HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gantt.