Hi Darren, You might want to take a look at the OpenSocial Explore [1]r for a decent example. To listen for when the gadget changes its own preferences you want to pass a function into the container config for osapi.container.ContainerConfig.SET_PREFERENCES. When the user changes the gadgets preferences in the containers UI you basically just have to rerender the gadget passing the new preferences in the navigate call. See the listener added in the startup method of the GadgetArea class of the OpenSocial Explorer for an example how we do it there. It will be different for every container though.
[1] https://github.com/OpenSocial/explorer/blob/master/opensocial-explorer-webcontent/src/main/javascript/modules/widgets/gadgetarea/GadgetArea.js On Tue, Aug 27, 2013 at 4:05 PM, Darren Bond <db...@globalcad.com> wrote: > Hi Henry, > > I wondered if you could kindly provide some further guidance on Maxim's query > below? You mentioned about a possible hook for the user preferences? > > Many thanks. > > Kind regards, > > Darren Bond > > > >> Hi Maxim, >> >> I believe with the common container, you need to build your own user >> preference dialog but I think there is a hook to do this. >> >> I will try to look more into this later at home. >> >> CC Shindig dev list for this. >> >> - Henry > > > On Thu, Aug 22, 2013 at 11:36 AM, Maxim Ognev <mog...@ruswizards.com> wrote: > >> Hello. >> >> In one of the email you wrote: >> >> >This feature should have been removed with the new Shindig's common >> >container support under features/container directory. >> >> >> >> >> > > Hi All, >> >> >> >> >> In the following script: >> >> >> >> >> >> features/src/main/javascript/features/shindig.container/shindig-container.js >> >> >> >> ... there is a script being inserted from iGoogle: >> >> >> >> http://www.gmodules.com/ig/gadgetsettings >> >> >> >> I looked features/container, but I didn't see function a similar >> buildUserPrefsDialog from shindig-container.js >> >> >> >> Please, explain to me how to create UI dialog preference gadget in my web >> site. >> >> >> >> Does this functionality in shindig version 2.5? Or I must create html for UI >> dialog preference it myself. >> >> >> >> >> I can get JSON object from container.preloadGadgets , get Preferences object >> from it and create html. But I think this is not right decision. I'm >> looking for ready implementation. >> >> Sorry, for my english. >> >> >> Maxim Ognev > > >