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

Force deepest level / term leafs #1

Open
funkytraffic opened this issue Jun 12, 2019 · 4 comments
Open

Force deepest level / term leafs #1

funkytraffic opened this issue Jun 12, 2019 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@funkytraffic
Copy link

It would be great if the user could be forced only to select the lowest level with the tree.

@duartegarin
Copy link
Owner

Hi @funkytraffic ,
I will mark this as a feature request for now. Happy to accept a PR on this.
It should be fairly easy to achieve using the Fancytree API.

@duartegarin duartegarin self-assigned this Jun 17, 2019
@duartegarin duartegarin added the enhancement New feature or request label Jun 17, 2019
@marceldobrica
Copy link

I need this too... the easiest way is to add display:none to check-boxes with children...but....

Another way, as Fancytree API has a value checkbox:true/false for each node you have to add in TermReferenceFancytree.php, field widget, $item['checkbox'] = FALSE; each time an item has children or is lazy loading....

Better you have to add a configuration form for your module and check if user needs the ability to select only leafs....

@funkytraffic
Copy link
Author

Is there any perspective to add this feature soon?

@marceldobrica
Copy link

@funkytraffic
Hello,
For moment I'm a little busy at my job. For my project I have made the changes directly in TermReferenceFancytree.php... You may too... Normally one should create an issue, patch etc and add a configuration in module. I think I'll be able to start working on it but not so soon.... How should double click action in this case for leafs?... I'm not sure if I'll be able to figure out how to remove this feature or ... probably it is a good one but without selecting the parent/parents (fancytree api/code... i haven't studied enough)... What do you think?...

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

No branches or pull requests

3 participants