webismymind / editablegrid

EditableGrid is an open source Javascript library aimed at turning HTML tables into advanced editable components. It focuses on simplicity: only a few lines of code are required to get your first table up and running.
http://www.editablegrid.net
Other
795 stars 272 forks source link

Which scripts are required? #99

Open Flimm opened 9 years ago

Flimm commented 9 years ago

In the example code, this is how the scripts are loaded:

<script src="../../editablegrid.js"></script>
<!-- [DO NOT DEPLOY] --> <script src="../../editablegrid_renderers.js" ></script>
<!-- [DO NOT DEPLOY] --> <script src="../../editablegrid_editors.js" ></script>
<!-- [DO NOT DEPLOY] --> <script src="../../editablegrid_validators.js" ></script>
<!-- [DO NOT DEPLOY] --> <script src="../../editablegrid_utils.js" ></script>
<!-- [DO NOT DEPLOY] --> <script src="../../editablegrid_charts.js" ></script>

The comments "DO NOT DEPLOY" make it look like most of these scripts are optional. However, if I only include editablegrid.js, I get errors like this one:

TypeError: this.detectDir is not a function
kingrollo commented 9 years ago

Looks to me as though everything except the "charts" one is required. I'd also be interested to know what the "do not deploy" is for - I removed them from my deployment and suffered the same problems!

vivekdtiwari commented 9 years ago

I have this question too. Please can anyone clarify? Asking around some said it does have a minified version or a single file to use. However when I try to do so it just gives me same error.