Login Register

stores

Are you able dojo.connect to a dojo.data stores event like dojo.connect(myStore, "onItem", function() { console.log("item") });?

It seems like you should be able to but this didn't work for me. myStore is a jsId.

dojo.connect(myStore, "onItem", function() { console.log("item") });

I'm looking for suggestions on a better way to iterate through my dojo.data store to decrease # of iterations

Sorry that's a pretty vague subject. What I have is a store of items like this:

items: 
[
  { name: "button", category: "core", imageSrc: "image.png", label: "Button", description: "It's a button!" }, 
  and repeat...
]
Syndicate content