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

Setting state is not reflected to nodes #101

Open
sauliuni opened this issue Nov 24, 2016 · 1 comment
Open

Setting state is not reflected to nodes #101

sauliuni opened this issue Nov 24, 2016 · 1 comment

Comments

@sauliuni
Copy link

Hello, i wanted to set state to hide for some nodes after certain events. Im using following callback function:

  vm.callbacl = function (nodes, str, res) {
    // Reset state for all elements
    _.each(vm.treeData, function (element, iteree) {
      element.text = "FSDFSD";// THIS LINE WORKS!
      element.state.hidden = true; // THIS NOT!
    });
  };

Somehow text property binding exists, but not for the state

@sauliuni
Copy link
Author

I think it is blocked by vakata/jstree#1644

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