valeriogalano / checkboxtree

Automatically exported from code.google.com/p/checkboxtree
0 stars 0 forks source link

single branch selection and multiple choice children #53

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Version of the script I'm using: 0.5

Description of the problem:

Hi, I was wondering if is possible to have a single branch selection, but then 
having the option of multiple choice in the children?

Original issue reported on code.google.com by line...@gmail.com on 11 Jul 2011 at 2:08

GoogleCodeExporter commented 9 years ago
Not at the moment. It could be a new feature in next release

Original comment by valerio....@gmail.com on 11 Jul 2011 at 3:33

GoogleCodeExporter commented 9 years ago
Hi, I implemented this featured. 

An example of how to activate single root with multiple children.

                    $('#tree8').checkboxTree({
                        initializeUnchecked: 'collapsed',
                        multipleChildren: 'true',
                        onCheck: {
                            ancestors: 'check',
                            descendants: 'uncheck',
                            others: 'uncheck'
                        },
                        onUncheck: {
                            descendants: 'uncheck'
                        }
                    });

Original comment by line...@gmail.com on 25 Jul 2011 at 2:06

Attachments: