Skip to content

event result is always [] #4

@AppWerft

Description

@AppWerft

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions