davidstutz / bootstrap-multiselect

JQuery multiselect plugin based on Twitter Bootstrap.
https://davidstutz.github.io/bootstrap-multiselect/
Other
3.67k stars 1.98k forks source link

Possible to have 3 levels? #1081

Open iamdevlinph opened 5 years ago

iamdevlinph commented 5 years ago

Currently, this only works fine with 2 levels

A
    A1
    A2
B
    B1

Is it possible to have it as 3 levels?

A
    A1
        A1a
    A2
        A2a
        A2b
B
    B1

I tried with the following code but it's just until the second level.

tree = [
    {
        label: "A",
        children: [
            {
                label: "A1",
                children: [
                    {
                        label: "A1.1",
                        value: "A1.1"
                    }
                ]
            }
        ]
    }
]

Any way to achieve 3 levels or more?

shaunmoss commented 5 years ago

Also looking for a solution to this.

iamdevlinph commented 5 years ago

I ended up just copying the CSS of this dropdown and used ng-template. I'll try to put the code tomorrow if I don't forget.

hovornyan commented 5 years ago

some news on this?