November Happy Hour will be moved to Thursday December 5th.

Custom SelectMany

Vote:
 

Hi,

I need to create a Dojo widget similar to the Select-Many build-in control.  

http://world.episerver.com/blogs/Linus-Ekstrom/Dates/2013/12/SingleMultiple-selection-in-EPiServer-75/

In the blog, the Dojo widget gets its data with a Selection Factory.  I would like to do the same, but I have no idea how to "send" the data from the Selection Factory to the custom Dojo widget (I'm refering to the Dojo *.js file).

Kind regards,

Danie

#114681
Dec 18, 2014 10:27
Vote:
 

Hey Daniel, you don't need to send the data to the widget since that is done automatically. As long as you have set the SelectionFactoryType property on your editor descriptor then the selections will automatically be passed through to your widget. You can look use this.selections on your widget to get an array with the selections that you have configured.

#114702
Dec 18, 2014 16:59
Vote:
 

Thanks Ben, exactly what I'm looking for.

#114769
Dec 19, 2014 18:22
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.