Templarian / ui.bootstrap.contextMenu

AngularJS Bootstrap UI Context Menu
MIT License
259 stars 127 forks source link

feature: support dynamic subitems #113

Closed zoladkow closed 7 years ago

zoladkow commented 7 years ago

With this PR we should be able to provide an array of submenu options dynamically, like so:

children: $q(function (resolve) {
    resolve(
        function ($itemScope) {
            return service.prepareSubItems($itemScope, jumpOptions);
        }
    );
})
josetaira commented 7 years ago

Thank you for your contribution, @zoladkow!