Comments (5)
This is specifically not done because it would expose an additional global. Given that best practices with AMD discourage creating unnecessary globals, this is not something we really want to add to dgrid. As you say, however, it does present a challenge with the current Dojo parser.
Currently, the way to get around this is to expose any constructors you need parser to have access to yourself - which generally won't be the List module, but more likely the GridFromHtml module, or some constructor created using declare
which mixes in GridFromHtml and any number of mixins/extensions. You can see examples of this done in some of the test pages, for example test/GridFromHtml.html
(currently lines 91-92).
Note that currently there is also discussion going around for Dojo 1.8 to add support for parser to pick up data-dojo-type
values which reference module identifiers (e.g. dgrid/GridFromHtml
), which will make this less of a pain point.
Thanks for bringing this up though, I realize now that despite my memory suggesting otherwise, the README doesn't seem to make any mention of playing nicely with the parser. I'll see about adding a paragraph about that.
from dgrid.
fyi - the module identifier patch is in current trunk http://bugs.dojotoolkit.org/ticket/13778 for reference
from dgrid.
Thanks for the quick response, makes sense as well in the grand scheme.
from dgrid.
Yup, the only thing really under debate for 1.8 is whether the modules will have to be explicitly required before the parser is invoked. That means significant changes to the dojo/parser that maybe a step too far before 2.0.
from dgrid.
Just added a note about using parser + dgrid in 1.7, in f6b4522
from dgrid.
Related Issues (20)
- ColumnSets with CompoundColumns and ColumnResizer does not always resize correctly.
- horizontal scrolling alignment issue dgrid
- horizontal HOT 1
- rowindex HOT 1
- Is this project still maintained? HOT 2
- DGrid 'select all' checkbox is not working as expected HOT 2
- OnDemandList does not refresh on store.setData HOT 2
- build issues with dojo 1.16 HOT 7
- Editor focusout handler is stopped when a row is removed
- CheckBox Editor does not work as expected in Safari HOT 3
- Removed row handing in Editor onblur HOT 2
- Editor: browser blur with active Select leads to bugged editor
- Update Intern from 3 to 4
- (ColumnSet +) CompoundColumns_findSortArrowParent(field) fails to find parent out of the 1st column set
- Website still points to v1.2.1
- Dgrid selector inconsistently working in touch screen devices like ipad dgrid/v1.1.0 HOT 10
- dgrid version 1.3.3 is breaking formatter function in dgrid HOT 2
- How to set dgrid editor checkbox readonly conditionally ?
- dgrid does not throw error on scroll (http-status-code) HOT 2
- dgrid.cell().element is undefined
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 dgrid.