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

updating setting editor.type : 'list'. config.list:[] #479

Closed
FiReBlUe45 opened this issue Aug 6, 2017 · 1 comment
Closed

updating setting editor.type : 'list'. config.list:[] #479

FiReBlUe45 opened this issue Aug 6, 2017 · 1 comment

Comments

@FiReBlUe45
Copy link

FiReBlUe45 commented Aug 6, 2017

Hello,

Is it possible to update the value of "editor.type.config.list" ? Because I received the value array from an observable.
example:

settings = {
    columns: {
      id: {
        title: 'ID',
        editable: false,
      },
      name: {
        title: 'Name',
      },
      groupId: {
        title: 'Unique Id',
        editor: {
          type : 'list',
          config: {
            list: this.listGroups,
          },
        },
      }, ....


 this.pagesS.groups.subscribe(res => {
      this.listGroups = new Array();
      res.forEach(element => {
        this.listGroups.push( { value: element['id'], title: element['name'] } );
      });

        console.log(this.listGroups)
      this.sourceGroups.load(res);
    });

Thank you

@FiReBlUe45
Copy link
Author

I found workaround #337

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