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

No checkboxes displayed #21

Open
pablobertran opened this issue May 10, 2017 · 1 comment
Open

No checkboxes displayed #21

pablobertran opened this issue May 10, 2017 · 1 comment

Comments

@pablobertran
Copy link

I've managed to set up the directive, it's all working great. I just need it to show checkboxes, and don't know how to enable them.

This is the directive html:

<multiselect-searchtree
                        multi-select="true"
                        data-input-model="arbol"
                        data-output-model="arbolOut"
                        data-callback="arbolChange(item, selectedItems)"
                        data-select-only-leafs="true"
                        extra-buttons="true"
                        direct-search="true">
                </multiselect-searchtree>

Ideas?

@tiberius-s
Copy link

I may be too late here, but I recently came upon this lib in a project and had the same issue. What you need to do is make sure your callback returns true.
In your case:

$scope.arbolChange = function(item, selectedItems){
  //handle the selection here
  return true;
};

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

2 participants