Options to automatically select/deselect ancestors/descendants when node is checked/unchecked.

Created on 13 June 2022, about 2 years ago
Updated 11 October 2023, 9 months ago

Problem/Motivation

Add more flexibility to the selection behavior by adding these options:

- Check ancestors when node is checked
- Check descendants when node is checked
- Uncheck ancestors when node is unchecked
- Uncheck descendants when node is unchecked

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ͺπŸ‡¨Ecuador BetoAveiga Daule, Guayas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Thank you, works fine for the latest 2.0.0 version, however there is one discrepancy in your code in entity_reference_tree.js:

    +    },
         attach: function(context, settings) {
    +      const self = this;
           $("#entity-reference-tree-wrapper", context)
             .once("jstreeBehavior")
             .each(function() {
    @@ -21,6 +53,11 @@

    the current version 2.x-dev has different rows :

    +    },
         attach: function(context, settings) {
    +      const self = this;
     const entityJSTree = once('entityReferenceTree', '#entity-reference-tree-wrapper', context);
  • It is not possible to use update via composer to the latest version. Anyone can fix it please?
    #6 patch works fine, however manual imput is needed.

  • πŸ‡¦πŸ‡²Armenia arthur.baghdasar

    Rerolled

Production build 0.69.0 2024