define({ // Wire spec
imageGrid: { create: { module: 'modules/horizontalDgrid/module', args: { node: {$ref: 'id!all-images'}, store: {$ref: 'imageStore'}, field: 'id', label: 'description', query: {}, render: { module: 'modules/horizontalDgrid/renderers/Image' } } } },
imagePartSelect: { wire: { spec: 'app/admin/editor/imagePartSelect.spec', provide: { node: {$ref: 'id!filtered-imageparts'}, store: {$ref: 'imagePartStore'}, label: 'couch_id' } } }
});
define({ // Wire spec
pubsubChannel: {
create: /* some code to create a channel object */
},
imageGrid: { create: { module: 'modules/horizontalDgrid/module', args: {
channel: {$ref: 'pubsubChannel'}, // a channel to send the selected image id to node: {$ref: 'id!all-images'}, store: {$ref: 'imageStore'}, field: 'id', label: 'description', query: {}, render: { module: 'modules/horizontalDgrid/renderers/Image' } } } },
imagePartSelect: { wire: { spec: 'app/admin/editor/imagePartSelect.spec', provide: {
channel: {$ref: 'pubsubChannel'}, // a channel object to attach a handler to node: {$ref: 'id!filtered-imageparts'}, store: {$ref: 'imagePartStore'}, label: 'couch_id' } } }
});
--
You received this message because you are subscribed to the Google Groups "cujojs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cujojs+un...@googlegroups.com.
To post to this group, send email to cuj...@googlegroups.com.
Visit this group at http://groups.google.com/group/cujojs.
To view this discussion on the web visit https://groups.google.com/d/msgid/cujojs/8e39bcf6-c4f6-451d-8dd0-27892cebcaa3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.