Templarian / ui.bootstrap.contextMenu

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

Conditional divider #124

Closed lafeuil closed 7 years ago

lafeuil commented 7 years ago

With the current implementation, we can add divider in context menu by defining a null submenu.

But with the displayed property, we can hide some submenus but not the divider that precede them.

josetaira commented 7 years ago

Yeah, I'm actually in the process of implementing this. It's just another property in the object definition. Thinking of just a boolean/function property called "hasTopDivider". Just wondering if there are usecases for hasBottomDivider as well.

josetaira commented 7 years ago

Pushed and ready. The updated documentation now includes hasTopDivider and hasBottomDivider