Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

event result is always [] #4

Open
AppWerft opened this issue Aug 20, 2014 · 1 comment
Open

event result is always [] #4

AppWerft opened this issue Aug 20, 2014 · 1 comment

Comments

@AppWerft
Copy link
Contributor

Hi David,
thanx for your work. In my last project I tried to use:

var sections = HoerSuppe.getAllPodcasts();
var Dialogs = require("yy.tidialogs");
var options = [], selected = [];
sections.forEach(function(section) {
    options.push(section.title);
       if (section.selected)
       selected.push(section.title);
});
var picker = Dialogs.createMultiPicker({
  title : "Podcastkategoriefilter",
  options : options,
  selected : selected,
  okButtonTitle : "Übernehmen",
  cancelButtonTitle : "Abbruch"
});
picker.addEventListener('click', function(e) {
  console.log(e.selections);
  console.log(e.indexes);
});

On the screen I see the filled dialog, but after clicking both arrays are empty. In thee.source object are all properties of constructor.
I have tested with your binary and with my own compiled under 3.2.3.GA

Any ideas?

Cheers!
Rainer

@AppWerft
Copy link
Contributor Author

Hi David,

if I start with an empty dialog and click, then it works. Maybe I founded: in result basket are only changed options. If you start a dialog and say OK, then the arrayis empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant